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() |
public double getWeight()
MinimumVertexCoverAlgorithm.VertexCover
getWeight
in interface MinimumVertexCoverAlgorithm.VertexCover<V>
public Set<V> getVertices()
MinimumVertexCoverAlgorithm.VertexCover
getVertices
in interface MinimumVertexCoverAlgorithm.VertexCover<V>
Copyright © 2017. All rights reserved.