V - the vertex typepublic static class MinimumVertexCoverAlgorithm.VertexCoverImpl<V> extends Object implements MinimumVertexCoverAlgorithm.VertexCover<V>
| Modifier and Type | Field and Description | 
|---|---|
protected Set<V> | 
cover  | 
protected double | 
weight  | 
| Constructor and Description | 
|---|
VertexCoverImpl(Set<V> cover,
               double weight)  | 
| Modifier and Type | Method and Description | 
|---|---|
Set<V> | 
getVertices()
Set of vertices constituting the vertex cover 
 | 
double | 
getWeight()
Returns the weight of the vertex cover. 
 | 
String | 
toString()  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waititeratorforEach, spliteratorpublic double getWeight()
MinimumVertexCoverAlgorithm.VertexCovergetWeight in interface MinimumVertexCoverAlgorithm.VertexCover<V>public Set<V> getVertices()
MinimumVertexCoverAlgorithm.VertexCovergetVertices in interface MinimumVertexCoverAlgorithm.VertexCover<V>Copyright © 2018. All rights reserved.