コード例 #1
0
ファイル: Edge.cs プロジェクト: jamesrcounts/CS513
 public Vertex OtherNode(Vertex that)
 {
     return Ends.Where(v => v != that).Single();
 }
コード例 #2
0
ファイル: Edge.cs プロジェクト: jamesrcounts/CS513
 public Edge(int cost, Vertex v, Vertex u)
 {
     Cost = cost;
     Ends = new[] { v, u };
 }