Satsuma
a delicious .NET graph library
|
Extension methods to IPath. More...
Static Public Member Functions | |
static bool | IsCycle (this IPath path) |
Returns true if FirstNode equals LastNode and the path has at least one arc. More... | |
static Node | NextNode (this IPath path, Node node) |
Returns the successor of a node in the path. More... | |
static Node | PrevNode (this IPath path, Node node) |
Returns the predecessor of a node in the path. More... | |
|
static |
Returns the successor of a node in the path.
Returns Node.Invalid if the node is not on the path or has no successor. If the path is a cycle, then each node has a successor.
Returns the predecessor of a node in the path.
Returns Node.Invalid if the node is not on the path or has no predecessor. If the path is a cycle, then each node has a predecessor.