code: public Set<TypedEdge<T>> getEdges(int vertex, Set<T> types) {
          // NOTE: this is purely unoptimized code, so fix if it ever gets in a
          // hotspot
          Set<TypedEdge<T>> set = new HashSet<TypedEdge<T>>();
          for (TypedEdge<T> e : new EdgesForVertex(vertex))
              if (types.contains(e.edgeType()))
                  set.add(e);
          return set;
      }
docs: {@inheritDoc}