code: public Set<TypedEdge<T>> getEdges(int vertex) {
          BitSet b = edges.get(vertex);
          if (b == null)
              return Collections.<TypedEdge<T>>emptySet();
          Set<TypedEdge<T>> s = new HashSet<TypedEdge<T>>();
          for (int i = b.nextSetBit(0); i >= 0; i = b.nextSetBit(i+1)) {
              @SuppressWarnings("unchecked")
              T type = (T)(TYPES.get(i));
              s.add(new SimpleTypedEdge<T>(type, vertex, rootVertex));
          }
          return s;
      }
docs: {@inheritDoc}