Click or drag to resize

DijkstraSetSource Method

Sets a vertex as a source for the calculations, providing its "distance" from the "original" source in case that does not exactly co-inside with the vertex.

It is allowed to set more than one source.

Namespace:  DHI.Mike1D.Generic.Graph
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public void SetSource(
	int sourceVertex,
	double distance
)

Parameters

sourceVertex
Type: SystemInt32
Vertex to set as source
distance
Type: SystemDouble
Distance for source vertex
See Also