public int compare()

in src/main/java/org/apache/commons/graph/shortestpath/ShortestDistances.java [61:76]


    public int compare( V left, V right )
    {
        if ( !alreadyVisited( left ) && !alreadyVisited( right ) )
        {
            return 0;
        }
        else if ( !alreadyVisited( left ) )
        {
            return 1;
        }
        else if ( !alreadyVisited( right ) )
        {
            return -1;
        }
        return weightOperations.compare( getWeight( left ), getWeight( right ) );
    }