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.ArcLookupExtensions Class Reference

Extension methods for IArcLookup. More...

Static Public Member Functions

static string ArcToString (this IArcLookup graph, Arc arc)
 Converts an arc to a readable string representation by looking up its nodes. More...
 
static Node[] Nodes (this IArcLookup graph, Arc arc, bool allowDuplicates=true)
 Returns the two nodes of an arc. More...
 
static Node Other (this IArcLookup graph, Arc arc, Node node)
 Returns U(arc) if it is different from the given node, or V(arc) if U(arc) equals to the given node. More...
 

Detailed Description

Extension methods for IArcLookup.

Definition at line 185 of file Graph.cs.

Member Function Documentation

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
arcAn arc belonging to the graph, or Arc.Invalid.

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

static Node Satsuma.ArcLookupExtensions.Other ( this IArcLookup  graph,
Arc  arc,
Node  node 
)
static

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
nodeAn arbitrary node, may even be Node.Invalid.

Definition at line 199 of file Graph.cs.


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