V
- the graph vertex typeE
- the graph edge typepublic class EdgeBasedTwoApproxVCImpl<V,E> extends Object implements VertexCoverAlgorithm<V>
VertexCoverAlgorithm.VertexCover<V>, VertexCoverAlgorithm.VertexCoverImpl<V>
Constructor and Description |
---|
EdgeBasedTwoApproxVCImpl(Graph<V,E> graph)
Constructs a new EdgeBasedTwoApproxVCImpl instance
|
Modifier and Type | Method and Description |
---|---|
VertexCoverAlgorithm.VertexCover<V> |
getVertexCover()
Finds a 2-approximation for a minimal vertex cover of the specified graph.
|
public VertexCoverAlgorithm.VertexCover<V> getVertexCover()
BarYehudaEvenTwoApproxVCImpl
or
ClarksonTwoApproxVCImpl
.
For more details see Jenny Walter, CMPU-240: Lecture notes for Language Theory and Computation, Fall 2002, Vassar College, http://www.cs.vassar.edu/~walter/cs241index/lectures/PDF/approx.pdf.
getVertexCover
in interface VertexCoverAlgorithm<V>
Copyright © 2019. All rights reserved.