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.GraphAssembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
public void SetSource(
int sourceVertex,
double distance
)
Parameters
- sourceVertex Int32
- Vertex to set as source
- distance Double
- Distance for source vertex