public Multigraph < T , E > next ( ) { if ( ! hasNext ( ) ) throw new NoSuchElementException ( ) ; Multigraph < T , E > cur = next . poll ( ) ; if ( next . isEmpty ( ) ) advance ( ) ; return cur ; }
Returns the next simple graph from the multigraph .