private OsmNodePair getElement(final long n1, final long n2) {
        OsmNodePair e = map.get(n1);
        while (e != null) {
            if (e.node2 == n2) {
                return e;
            }
            e = e.next;
        }
        return null;
    }
Set holding pairs of osm nodes

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