Click or drag to resize

ShortestPathShorthestPath Method

Finds shortes path, given the start and end nodes.

Namespace:  GraphLibrary
Assembly:  GraphLibrary (in GraphLibrary.dll) Version: 1.0.1
Syntax
C#
public List<int> ShorthestPath(
	BaseGraph graph,
	int nodeSource,
	int nodeEnd
)

Parameters

graph
Type: GraphLibrary.GraphsBaseGraph
BaseGraph graph.
nodeSource
Type: SystemInt32
Source node.
nodeEnd
Type: SystemInt32
End node

Return Value

Type: ListInt32
Returns the shortest path from start to end node.
See Also