Ejemplo n.º 1
0
 public static bool IsNodeContainedInEdge(this GraphEdge edge, GraphNode node)
 {
     return(edge.Node == node || edge.DependingNode == node);
 }
Ejemplo n.º 2
0
 public static GraphNode GetOtherNode(this GraphEdge edge, GraphNode node)
 {
     return(edge.Node == node ? edge.DependingNode : edge.Node);
 }