Class DirectedSubgraph<V,E>

java.lang.Object
org.jgrapht.graph.AbstractGraph<V,E>
org.jgrapht.graph.Subgraph<V,E,DirectedGraph<V,E>>
org.jgrapht.graph.DirectedSubgraph<V,E>
All Implemented Interfaces:
Serializable, DirectedGraph<V,E>, Graph<V,E>
Direct Known Subclasses:
DirectedWeightedSubgraph

public class DirectedSubgraph<V,E> extends Subgraph<V,E,DirectedGraph<V,E>> implements DirectedGraph<V,E>
A directed graph that is a subgraph on other graph.
See Also:
  • Constructor Details

    • DirectedSubgraph

      public DirectedSubgraph(DirectedGraph<V,E> base, Set<V> vertexSubset, Set<E> edgeSubset)
      Creates a new directed subgraph.
      Parameters:
      base - the base (backing) graph on which the subgraph will be based.
      vertexSubset - vertices to include in the subgraph. If null then all vertices are included.
      edgeSubset - edges to in include in the subgraph. If null then all the edges whose vertices found in the graph are included.
  • Method Details