Module org.jgrapht.core
Package org.jgrapht.alg.decomposition
Class DulmageMendelsohnDecomposition.Decomposition<V,E>
java.lang.Object
org.jgrapht.alg.decomposition.DulmageMendelsohnDecomposition.Decomposition<V,E>
- Type Parameters:
V
- vertex typeE
- edge type
- Enclosing class:
- DulmageMendelsohnDecomposition<V,
E>
The output of a decomposition operation
-
Method Summary
Modifier and TypeMethodDescriptionGets the subset dominated by partition1.Gets the subset dominated by partition2.Gets the remaining subset, or subsets in the fine decomposition.
-
Method Details
-
getPartition1DominatedSet
Gets the subset dominated by partition1. Where $D$ is the set of vertices in $G$ that are not matched in the maximum matching of $G$, this set contains members of the first partition and vertices from the second partition that neighbour them.- Returns:
- The vertices in $D \cap V_1$ and their neighbours
-
getPartition2DominatedSet
Gets the subset dominated by partition2. Where $D$ is the set of vertices in $G$ that are not matched in the maximum matching of $G$, this set contains members of the second partition and vertices from the first partition that neighbour them.- Returns:
- The vertices in $D \cap V_2$ and their neighbours
-
getPerfectMatchedSets
Gets the remaining subset, or subsets in the fine decomposition. This set contains vertices that are matched in the maximum matching of the graph $G$. If the fine decomposition was used, this will be multiple sets, each a strongly-connected-component of the matched subset of $G$.- Returns:
- List of Sets of vertices in the subsets
-