// 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(); }
// 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(); }