code: public Set<WeightedDirectedTypedEdge<T>> getEdges(int vertex, Set<T> types) {
          Set<WeightedDirectedTypedEdge<T>> edges =
              new HashSet<WeightedDirectedTypedEdge<T>>();
          for (WeightedDirectedTypedEdge<T> e : inEdges.get(vertex))
              if (types.contains(e.edgeType()))
                  edges.add(e);
          for (WeightedDirectedTypedEdge<T> e : outEdges.get(vertex))
              if (types.contains(e.edgeType()))
                  edges.add(e);
          return edges;
      }
docs: {@inheritDoc}