Extension methods for IArcLookup.
More...
Extension methods for IArcLookup.
Definition at line 185 of file Graph.cs.
static string Satsuma.ArcLookupExtensions.ArcToString |
( |
this IArcLookup |
graph, |
|
|
Arc |
arc |
|
) |
| |
|
static |
Converts an arc to a readable string representation by looking up its nodes.
- Parameters
-
Definition at line 189 of file Graph.cs.
static Node [] Satsuma.ArcLookupExtensions.Nodes |
( |
this IArcLookup |
graph, |
|
|
Arc |
arc, |
|
|
bool |
allowDuplicates = true |
|
) |
| |
|
static |
Returns the two nodes of an arc.
- Parameters
-
arc | An arc belonging to the graph. |
allowDuplicates |
- If
true , then the resulting array always contains two items, even if the arc connects a node with itself.
- If
false , then the resulting array contains only one node if the arc is a loop.
|
Definition at line 211 of file Graph.cs.
Returns U(arc)
if it is different from the given node, or V(arc)
if U(arc)
equals to the given node.
- Note
- If the given node is on the given arc, then this function returns the other node of the arc.
- Parameters
-
Definition at line 199 of file Graph.cs.
The documentation for this class was generated from the following file: