public boolean hasPair(final long n1, final long n2) {
        return map != null && (getElement(n1, n2) != null || getElement(n2, n1) != null);
    }
Set holding pairs of osm nodes

@author ab
main/src/main/java/cgeo/geocaching/brouter/mapaccess/OsmNodePairSet.java