/guava/guava/src/com/google/common/graph/EndpointPairIterator.java
this.nodeIterator = this.nodes( ).iterator( ) ;
this.nodeIterator = graph.nodes ( ) .iterator ( ) ;
Iterator<N> successorIterator = ImmutableSet.<N>of().iterator(); static <N> EndpointPairIterator<N> of(BaseGraph<N> graph) { return graph.isDirected() ? new Directed<N>(graph) : new Undirected<N>(graph); } private EndpointPairIterator(BaseGraph<N> graph) { this.graph = graph; <extra_id_0> } final boolean advance() { checkState(!successorIterator.hasNext()); if (!nodeIterator.hasNext()) { return false; }