Class DirectedWeightedSubgraph<V,​E>

    • Constructor Detail

      • DirectedWeightedSubgraph

        public DirectedWeightedSubgraph​(WeightedGraph<V,​E> base,
                                        java.util.Set<? extends V> vertexSubset,
                                        java.util.Set<? extends E> edgeSubset)
        Creates a new weighted 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.
      • DirectedWeightedSubgraph

        public DirectedWeightedSubgraph​(WeightedGraph<V,​E> base,
                                        java.util.Set<? extends V> vertexSubset)
        Creates a new weighted directed induced 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.
      • DirectedWeightedSubgraph

        public DirectedWeightedSubgraph​(WeightedGraph<V,​E> base)
        Creates a new weighted directed induced subgraph with all vertices included.
        Parameters:
        base - the base (backing) graph on which the subgraph will be based.