org.jgrapht.graph
public class DirectedWeightedSubgraph<V,E> extends DirectedSubgraph<V,E> implements WeightedGraph<V,E>
Subgraph,
Serialized FormDEFAULT_EDGE_WEIGHT| Constructor and Description |
|---|
DirectedWeightedSubgraph(WeightedGraph<V,E> base,
java.util.Set<V> vertexSubset,
java.util.Set<E> edgeSubset)
Creates a new weighted directed subgraph.
|
incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOfaddEdge, addEdge, addVertex, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getBase, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, removeEdge, removeEdge, removeVertex, setEdgeWeight, vertexSetassertVertexExist, containsEdge, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSetsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetEdgeWeightaddEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSetpublic DirectedWeightedSubgraph(WeightedGraph<V,E> base, java.util.Set<V> vertexSubset, java.util.Set<E> edgeSubset)
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.