/guava/android/guava/src/com/google/common/graph/IncidentEdgeSet.java
if ( graph.inDegree( node) ) {
if ( graph.isDirected ( ) ) {
@Override public boolean remove(@CheckForNull Object o) { throw new UnsupportedOperationException(); } @Override public int size() { <extra_id_0> return graph.inDegree(node) + graph.outDegree(node) - (graph.successors(node).contains(node) ? 1 : 0); } else { return graph.adjacentNodes(node).size(); }