code: public int disconnect(int vertex) {
          int removed = 0;
          if (inEdges.remove(vertex))
              removed++;
          if (outEdges.remove(vertex))
              removed++;
          return removed;
      }
docs: {@inheritDoc}