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