code: public Set<WeightedDirectedTypedEdge<T>> getEdges(T type) {
          Set<WeightedDirectedTypedEdge<T>> edges =
              new HashSet<WeightedDirectedTypedEdge<T>>();
          for (WeightedDirectedTypedEdge<T> e : inEdges.values())
              if (e.edgeType().equals(type))
                  edges.add(e);
          for (WeightedDirectedTypedEdge<T> e : outEdges.values())
              if (e.edgeType().equals(type))
                  edges.add(e);
          return edges;
      }
docs: {@inheritDoc}