Exemplo n.º 1
0
 public bool HasNeighbour(GraphNode <TNode, TEdge> neighbour, TEdge weight)
 {
     return(neighbours.Any(x => x.Dest.Equals(neighbour) && x.Weight.CompareTo(weight) == 0));
 }
Exemplo n.º 2
0
 public bool HasNeighbour(GraphNode <TNode, TEdge> neighbour)
 {
     return(neighbours.Any(x => x.Dest.Equals(neighbour)));
 }