public boolean equals()

in src/main/java/org/apache/commons/graph/model/BaseGraph.java [104:120]


    public boolean equals( Object obj )
    {
        if ( this == obj )
        {
            return true;
        }

        if ( obj == null || getClass() != obj.getClass() )
        {
            return false;
        }

        @SuppressWarnings( "unchecked" )
        // test against any Graph typed instance
        BaseGraph<Object, Object> other = (BaseGraph<Object, Object>) obj;
        return eq( adjacencyList, other.getAdjacencyList() );
    }