planner/src/main/java/Node.java
public double distance(Node other) {
        String key = getUuid() + other.getUuid();
        if (Node.DISTANCE_MATRIX.containsKey(key))
            return Node.DISTANCE_MATRIX.get(key);
        else if (getUuid() == other.getUuid())
            return 0;
        else
            return Double.MAX_VALUE;
    }
/**
     * Return the distance between this node and the other one.
     *
     * @author James McClain
     * @param  other  The other node
     */
Return the distance between this node and the other one.
@author James McClain
@param  other  The other node
Return the distance between this node and the other one . @author James McClain @param other The other node
public double distance(Node other) {
        String key = getUuid() + other.getUuid();
        if (Node.DISTANCE_MATRIX.containsKey(key))
            return Node.DISTANCE_MATRIX.get(key);
        else if (getUuid() == other.getUuid())
            return 0;
        else
            return Double.MAX_VALUE;
    }
public double distance ( Node other ) { String key = getUuid ( ) + other . getUuid ( ) ; if ( Node . DISTANCE_MATRIX . containsKey ( key ) ) return Node . DISTANCE_MATRIX . get ( key ) ; else if ( getUuid ( ) == other . getUuid ( ) ) return 0 ; else return Double . MAX_VALUE ; }
Return the distance between this node and the other one.
Return the distance between this node and the other one .