in src/main/java/org/apache/commons/graph/model/InMemoryPath.java [145:163]
public boolean equals( Object obj )
{
if ( this == obj )
{
return true;
}
if ( obj == null || getClass() != obj.getClass() )
{
return false;
}
@SuppressWarnings( "unchecked" ) // test against any Path typed instance
InMemoryPath<Object, Object> other = (InMemoryPath<Object, Object>) obj;
return eq( source, other.getSource() )
&& eq( target, other.getTarget() )
&& eq( vertices, other.getVertices() )
&& eq( edges, other.getEdges() );
}