コード例 #1
0
 public bool HasNeighbour(GraphNode <TNode, TEdge> neighbour, TEdge weight)
 {
     return(neighbours.Any(x => x.Dest.Equals(neighbour) && x.Weight.CompareTo(weight) == 0));
 }
コード例 #2
0
 public bool HasNeighbour(GraphNode <TNode, TEdge> neighbour)
 {
     return(neighbours.Any(x => x.Dest.Equals(neighbour)));
 }