Class UndirectedWeightedSubgraph<V,E>

All Implemented Interfaces:
Serializable, Graph<V,E>, UndirectedGraph<V,E>, WeightedGraph<V,E>

public class UndirectedWeightedSubgraph<V,E> extends UndirectedSubgraph<V,E> implements WeightedGraph<V,E>
An undirected weighted graph that is a subgraph on other graph.
See Also:
  • Constructor Details

    • UndirectedWeightedSubgraph

      public UndirectedWeightedSubgraph(WeightedGraph<V,E> base, Set<V> vertexSubset, Set<E> 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.