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>
public static class DulmageMendelsohnDecomposition.Decomposition<V,E> extends java.lang.Object
The output of a decomposition operation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<V>
getPartition1DominatedSet()
Gets the subset dominated by partition1.java.util.Set<V>
getPartition2DominatedSet()
Gets the subset dominated by partition2.java.util.List<java.util.Set<V>>
getPerfectMatchedSets()
Gets the remaining subset, or subsets in the fine decomposition.
-
-
-
Method Detail
-
getPartition1DominatedSet
public java.util.Set<V> 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
public java.util.Set<V> 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
public java.util.List<java.util.Set<V>> 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
-
-