V
- the graph vertex typeE
- the graph edge typepublic class BarYehudaEvenTwoApproxVCImpl<V,E> extends Object implements MinimumWeightedVertexCoverAlgorithm<V,E>, VertexCoverAlgorithm<V>
BarYehudaEvenTwoApproxVCImpl
.
TODO: Remove the UndirectedSubgraph dependency! Querying vertex degrees on these graphs is
actually slow! This does affect the runtime complexity. Better would be to just work on a clone
of the original graph!MinimumVertexCoverAlgorithm.VertexCover<V>, MinimumVertexCoverAlgorithm.VertexCoverImpl<V>
VertexCoverAlgorithm.VertexCover<V>, VertexCoverAlgorithm.VertexCoverImpl<V>
Constructor and Description |
---|
BarYehudaEvenTwoApproxVCImpl()
Deprecated.
this constructor will be removed in the next release
|
BarYehudaEvenTwoApproxVCImpl(Graph<V,E> graph)
Constructs a new BarYehudaEvenTwoApproxVCImpl instance where all vertices have uniform
weights.
|
BarYehudaEvenTwoApproxVCImpl(Graph<V,E> graph,
Map<V,Double> vertexWeightMap)
Constructs a new BarYehudaEvenTwoApproxVCImpl instance
|
Modifier and Type | Method and Description |
---|---|
VertexCoverAlgorithm.VertexCover |
getVertexCover()
Computes a vertex cover.
|
MinimumVertexCoverAlgorithm.VertexCover<V> |
getVertexCover(Graph<V,E> graph,
Map<V,Double> vertexWeightMap)
Deprecated.
Replaced by
getVertexCover() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVertexCover
@Deprecated public BarYehudaEvenTwoApproxVCImpl()
public BarYehudaEvenTwoApproxVCImpl(Graph<V,E> graph)
graph
- input graphpublic VertexCoverAlgorithm.VertexCover getVertexCover()
VertexCoverAlgorithm
getVertexCover
in interface VertexCoverAlgorithm<V>
@Deprecated public MinimumVertexCoverAlgorithm.VertexCover<V> getVertexCover(Graph<V,E> graph, Map<V,Double> vertexWeightMap)
getVertexCover()
MinimumWeightedVertexCoverAlgorithm
vertexWeightMap
.getVertexCover
in interface MinimumWeightedVertexCoverAlgorithm<V,E>
graph
- the input graphvertexWeightMap
- map containing non-negative weights for each vertexCopyright © 2018. All rights reserved.