Class DirectedSubgraph

  extended by org.jscience.computing.graph.graphs.AbstractGraph
      extended by org.jscience.computing.graph.graphs.Subgraph
          extended by org.jscience.computing.graph.graphs.DirectedSubgraph
All Implemented Interfaces:, DirectedGraph, Graph
Direct Known Subclasses:

public class DirectedSubgraph
extends Subgraph
implements DirectedGraph

A directed graph that is a subgraph on other graph.

See Also:
Subgraph, Serialized Form

Constructor Summary
DirectedSubgraph(DirectedGraph base, java.util.Set vertexSubset, java.util.Set edgeSubset)
          Creates a new directed subgraph.
Method Summary
Methods inherited from class org.jscience.computing.graph.graphs.Subgraph
addEdge, addEdge, addVertex, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, incomingEdgesOf, inDegreeOf, isVerifyIntegrity, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setVerifyIntegrity, vertexSet
Methods inherited from class org.jscience.computing.graph.graphs.AbstractGraph
addAllEdges, addAllVertices, assertVertexExist, containsEdge, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSets
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jscience.computing.graph.DirectedGraph
incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf
Methods inherited from interface org.jscience.computing.graph.Graph
addAllEdges, addAllVertices, addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet

Constructor Detail


public DirectedSubgraph(DirectedGraph base,
                        java.util.Set vertexSubset,
                        java.util.Set edgeSubset)
Creates a new directed subgraph.

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.