Satsuma
a delicious .NET graph library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
Static Public Member Functions | List of all members
Satsuma.PathExtensions Class Reference

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...
 

Detailed Description

Extension methods to IPath.

Definition at line 42 of file Path.cs.

Member Function Documentation

static bool Satsuma.PathExtensions.IsCycle ( this IPath  path)
static

Returns true if #FirstNode equals #LastNode and the path has at least one arc.

Definition at line 45 of file Path.cs.

static Node Satsuma.PathExtensions.NextNode ( this IPath  path,
Node  node 
)
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.

Definition at line 53 of file Path.cs.

static Node Satsuma.PathExtensions.PrevNode ( this IPath  path,
Node  node 
)
static

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.

Definition at line 63 of file Path.cs.


The documentation for this class was generated from the following file: