code: public int disconnect(int v) {
          BitSet b = edges.remove(v);
          if (b != null) {
              int edges = b.cardinality();
              size -= edges;
              return edges;
          }
          return 0;
      }
docs: {@inheritDoc}