protected class RecursiveExactVCImpl.BitSetCover extends Object
Modifier and Type | Field and Description |
---|---|
protected BitSet |
bitSetCover |
protected double |
weight |
Modifier | Constructor and Description |
---|---|
protected |
BitSetCover(int size,
int initialWeight)
Construct a new empty vertex cover as a BitSet.
|
protected |
BitSetCover(RecursiveExactVCImpl.BitSetCover vertexCover)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAllVertices(List<Integer> vertexIndices,
double totalWeight)
Add multiple vertices in the vertex cover.
|
protected void |
addVertex(int vertexIndex,
double weight)
Add a vertex in the vertex cover.
|
protected RecursiveExactVCImpl.BitSetCover |
copy()
Copy a vertex cover.
|
protected BitSet bitSetCover
protected double weight
protected BitSetCover(int size, int initialWeight)
size
- initial capacity of the BitSetinitialWeight
- the initial weightprotected BitSetCover(RecursiveExactVCImpl.BitSetCover vertexCover)
vertexCover
- the input vertex cover to copyprotected RecursiveExactVCImpl.BitSetCover copy()
protected void addVertex(int vertexIndex, double weight)
vertexIndex
- the index of the vertexweight
- the weight of the vertexCopyright © 2017. All rights reserved.