Exemple #1
0
 public bool Has(GraphNode node1, GraphNode node2)
 {
     return(node1 == From && node2 == To || node1 == To && node2 == From);
 }
Exemple #2
0
 public GraphWay(GraphNode FromNode, GraphNode ToNode, double WayWeight, bool oriented)
     : this(FromNode, ToNode, oriented)
 {
     weight      = WayWeight;
     WeightIsLen = false;
 }
Exemple #3
0
 public bool Has(GraphNode node)
 {
     return(node == From || node == To);
 }