示例#1
0
 public int DistanceTo(Vertex v)
 {
     return Math.Abs(this.Weight - v.Weight);
 }
示例#2
0
 public bool TryRemoveNeighbor(Vertex neighbor)
 {
     return neighbors.Remove(neighbor);
 }