in src/main/java/org/apache/commons/graph/spanning/ShortestEdges.java [162:177]
public int compare( V left, V right )
{
if ( !hasWeight( left ) && !hasWeight( right ) )
{
return 0;
}
else if ( !hasWeight( left ) )
{
return 1;
}
else if ( !hasWeight( right ) )
{
return -1;
}
return weightOperations.compare( getWeight( left ), getWeight( right ) );
}