V
- the graph vertex typeE
- the graph edge typepublic class EdmondsBlossomShrinking<V,E> extends Object implements MatchingAlgorithm<V,E>
MatchingAlgorithm.Matching<E>, MatchingAlgorithm.MatchingImpl<E>
DEFAULT_EPSILON
Constructor and Description |
---|
EdmondsBlossomShrinking(Graph<V,E> graph)
Construct an instance of the Edmonds blossom shrinking algorithm.
|
Modifier and Type | Method and Description |
---|---|
MatchingAlgorithm.Matching<E> |
computeMatching()
Compute a matching for a given graph.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMatching
public EdmondsBlossomShrinking(Graph<V,E> graph)
graph
- the input graphIllegalArgumentException
- if the graph is not undirectedpublic MatchingAlgorithm.Matching<E> computeMatching()
computeMatching
in interface MatchingAlgorithm<V,E>
Copyright © 2017. All rights reserved.