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