code: public DirectedMultigraph<T> subgraph(Set<Integer> subset) {
          Subgraph sub = new Subgraph(typeCounts.keySet(), subset);
          subgraphs.add(new WeakReference<Subgraph>(sub));
          return sub;
      }
docs: {@inheritDoc}