code: public int disconnect(int vertex) {
          Set<WeightedDirectedTypedEdge<T>> in = inEdges.remove(vertex);
          Set<WeightedDirectedTypedEdge<T>> out = outEdges.remove(vertex);
          return in.size() + out.size();
      }
docs: {@inheritDoc}