/guava/guava/src/com/google/common/graph/IncidentEdgeSet.java
if ( node.equals(nodeV) && adjacent.contains(nodeU) || node.equals(nodeU) && adjacent.contains(nodeV)) {
if ( graph.isDirected ( ) ) {
@Override public boolean contains(@CheckForNull Object obj) { if (!(obj instanceof EndpointPair)) { return false; } EndpointPair<?> endpointPair = (EndpointPair<?>) obj; <extra_id_0> if (!endpointPair.isOrdered()) { return false; } Object source = endpointPair.source(); Object target = endpointPair.target(); return (node.equals(source) && graph.successors(node).contains(target))