V - the graph vertex typeE - the graph edge typepublic static class MatchingAlgorithm.MatchingImpl<V,E> extends java.lang.Object implements MatchingAlgorithm.Matching<V,E>, java.io.Serializable
| Constructor and Description |
|---|
MatchingImpl(Graph<V,E> graph,
java.util.Set<E> edges,
double weight)
Construct a new instance
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<E> |
getEdges()
Get the edges of the matching.
|
Graph<V,E> |
getGraph()
Returns the graph over which this matching is defined.
|
double |
getWeight()
Returns the weight of the matching.
|
boolean |
isMatched(V v)
Returns true if vertex v is incident to an edge in this matching.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisPerfect, iteratorpublic Graph<V,E> getGraph()
MatchingAlgorithm.MatchinggetGraph in interface MatchingAlgorithm.Matching<V,E>public double getWeight()
getWeight in interface MatchingAlgorithm.Matching<V,E>public java.util.Set<E> getEdges()
getEdges in interface MatchingAlgorithm.Matching<V,E>public boolean isMatched(V v)
isMatched in interface MatchingAlgorithm.Matching<V,E>v - vertexpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019. All Rights Reserved.