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