예제 #1
0
 public KeyValuePair <T, HashSet <T> > GetVertex(T vertex)
 {
     return(AdjacencyList.FirstOrDefault(x => x.Key.X == vertex.X && x.Key.Y == vertex.Y));
 }
예제 #2
0
 public KeyValuePair <Position, HashSet <Position> > GetVertex(Position vertex)
 {
     return(AdjacencyList.FirstOrDefault(x => x.Key.X == vertex.X && x.Key.Y == vertex.Y));
 }