org.jgrapht.alg
Class MaximumWeightBipartiteMatching<V,E>
- java.lang.Object
-
- org.jgrapht.alg.MaximumWeightBipartiteMatching<V,E>
-
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Implemented Interfaces:
- MatchingAlgorithm<V,E>, WeightedMatchingAlgorithm<V,E>
Deprecated.UseMaximumWeightBipartiteMatchinginstead.
@Deprecated public class MaximumWeightBipartiteMatching<V,E> extends java.lang.Object implements WeightedMatchingAlgorithm<V,E>
This class finds a maximum weight matching of a simple undirected weighted bipartite graph. The algorithm runs in O(V|E|^2). The algorithm is described in The LEDA Platform of Combinatorial and Geometric Computing, Cambridge University Press, 1999. https://people.mpi-inf.mpg.de/~mehlhorn/LEDAbook.html Note: the input graph must be bipartite with positive integer edge weights
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jgrapht.alg.interfaces.MatchingAlgorithm
MatchingAlgorithm.Matching<E>, MatchingAlgorithm.MatchingImpl<E>
-
-
Field Summary
-
Fields inherited from interface org.jgrapht.alg.interfaces.MatchingAlgorithm
DEFAULT_EPSILON
-
-
Constructor Summary
Constructors Constructor and Description MaximumWeightBipartiteMatching(WeightedGraph<V,E> graph, java.util.Set<V> vertexPartition1, java.util.Set<V> vertexPartition2)Deprecated.Creates a new MaximumWeightBipartiteMatching algorithm instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description MatchingAlgorithm.Matching<E>computeMatching()Deprecated.Compute a matching for a given graph.java.util.Set<E>getMatching()Deprecated.Returns set of edges making up the matchingdoublegetMatchingWeight()Deprecated.Returns weight of a matching found
-
-
-
Constructor Detail
-
MaximumWeightBipartiteMatching
public MaximumWeightBipartiteMatching(WeightedGraph<V,E> graph, java.util.Set<V> vertexPartition1, java.util.Set<V> vertexPartition2)
Deprecated.Creates a new MaximumWeightBipartiteMatching algorithm instance. The union of vertexPartition1 and vertexParition2 should be equal to the vertex set of the graph Every edge in the graph must connect a vertex in vertexPartition1 with a vertex in vertexPartition2- Parameters:
graph- simple undirected weighted bipartite graph to find matching in, with positive integer edge weightsvertexPartition1- first vertex partition of the bipartite graph, disjoint from vertexPartition2vertexPartition2- second vertex partition of the bipartite graph, disjoint from vertexPartition1
-
-
Method Detail
-
getMatching
public java.util.Set<E> getMatching()
Deprecated.Description copied from interface:MatchingAlgorithmReturns set of edges making up the matching- Specified by:
getMatchingin interfaceMatchingAlgorithm<V,E>- Returns:
- a matching
-
getMatchingWeight
public double getMatchingWeight()
Deprecated.Description copied from interface:WeightedMatchingAlgorithmReturns weight of a matching found- Specified by:
getMatchingWeightin interfaceWeightedMatchingAlgorithm<V,E>- Returns:
- weight of a matching found
-
computeMatching
public MatchingAlgorithm.Matching<E> computeMatching()
Deprecated.Compute a matching for a given graph.- Specified by:
computeMatchingin interfaceMatchingAlgorithm<V,E>- Returns:
- a matching
-
-
DataMelt 3.0 © DataMelt by jWork.ORG