org._3pq.jgrapht.graph

Class UndirectedWeightedSubgraph

Implemented Interfaces:
Graph, Serializable, UndirectedGraph, WeightedGraph

public class UndirectedWeightedSubgraph
extends UndirectedSubgraph
implements WeightedGraph

An undirected weighted graph that is a subgraph on other graph.
See Also:
Subgraph

Constructor Summary

UndirectedWeightedSubgraph(WeightedGraph base, Set vertexSubset, Set edgeSubset)
Creates a new undirected weighted subgraph.

Method Summary

Methods inherited from class org._3pq.jgrapht.graph.Subgraph

addEdge, addEdge, addVertex, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, inDegreeOf, incomingEdgesOf, isVerifyIntegrity, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setVerifyIntegrity, vertexSet

Methods inherited from class org._3pq.jgrapht.graph.AbstractGraph

addAllEdges, addAllVertices, assertVertexExist, containsEdge, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSets

Constructor Details

UndirectedWeightedSubgraph

public UndirectedWeightedSubgraph(WeightedGraph base,
                                  Set vertexSubset,
                                  Set edgeSubset)
Creates a new undirected weighted 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.