V
- the graph vertex typeE
- the graph edge typepublic static class MatchingAlgorithm.MatchingImpl<V,E> extends Object implements MatchingAlgorithm.Matching<V,E>, Serializable
Constructor and Description |
---|
MatchingImpl(Graph<V,E> graph,
Set<E> edges,
double weight)
Construct a new instance
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isPerfect, iterator
forEach, spliterator
public Graph<V,E> getGraph()
MatchingAlgorithm.Matching
getGraph
in interface MatchingAlgorithm.Matching<V,E>
public double getWeight()
getWeight
in interface MatchingAlgorithm.Matching<V,E>
public Set<E> getEdges()
getEdges
in interface MatchingAlgorithm.Matching<V,E>
public boolean isMatched(V v)
isMatched
in interface MatchingAlgorithm.Matching<V,E>
v
- vertexCopyright © 2018. All rights reserved.