Module org.jgrapht.core
Package org.jgrapht.alg.interfaces
Class TreeToPathDecompositionAlgorithm.PathDecompositionImpl<V,E>
java.lang.Object
org.jgrapht.alg.interfaces.TreeToPathDecompositionAlgorithm.PathDecompositionImpl<V,E>
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Implemented Interfaces:
Serializable
,TreeToPathDecompositionAlgorithm.PathDecomposition<V,
E>
- Enclosing interface:
- TreeToPathDecompositionAlgorithm<V,
E>
public static class TreeToPathDecompositionAlgorithm.PathDecompositionImpl<V,E>
extends Object
implements TreeToPathDecompositionAlgorithm.PathDecomposition<V,E>, Serializable
Default implementation of the path decomposition interface.
- See Also:
-
Constructor Details
-
PathDecompositionImpl
Construct a new path decomposition.- Parameters:
graph
- the graphedges
- the edgespaths
- the vertex paths
-
-
Method Details
-
getEdges
Description copied from interface:TreeToPathDecompositionAlgorithm.PathDecomposition
Set of edges of the path decomposition.- Specified by:
getEdges
in interfaceTreeToPathDecompositionAlgorithm.PathDecomposition<V,
E> - Returns:
- edge set of the path decomposition
-
getPaths
Description copied from interface:TreeToPathDecompositionAlgorithm.PathDecomposition
Set of disjoint paths of the decomposition- Specified by:
getPaths
in interfaceTreeToPathDecompositionAlgorithm.PathDecomposition<V,
E> - Returns:
- list of vertex paths
-
toString
-