コード例 #1
0
ファイル: GraphVertex.java プロジェクト: tuli22s/graph
 // Overridden equals method for determining equality.
 // Since each vertex should have a unique name, the name/value of the vertex is an identifying
 // factor.
 public boolean equals(GraphVertex vertex) {
   return this.value == vertex.getValue();
 }