A Sandcastle Documented Class Library
A Sandcastle Documented Class Library
GraphLibrary
ShortestPath Class
ShortestPath Methods
ShorthestPath Method
ShortestPath
ShorthestPath Method
Finds shortes path, given the start and end nodes.
Namespace:
GraphLibrary
Assembly:
GraphLibrary (in GraphLibrary.dll) Version: 1.0.1
Syntax
C#
Copy
public
List
<
int
>
ShorthestPath
(
BaseGraph
graph
,
int
nodeSource
,
int
nodeEnd
)
Parameters
graph
Type:
GraphLibrary.Graphs
BaseGraph
BaseGraph graph.
nodeSource
Type:
System
Int32
Source node.
nodeEnd
Type:
System
Int32
End node
Return Value
Type:
List
Int32
Returns the shortest path from start to end node.
See Also
Reference
ShortestPath Class
GraphLibrary Namespace