protected class RecursiveExactVCImpl.BitSetCover
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.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(java.util.List<java.lang.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 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 vertexprotected void addAllVertices(java.util.List<java.lang.Integer> vertexIndices,
double totalWeight)
vertexIndices - the index of the verticestotalWeight - the total weight of the verticesCopyright © 2019. All Rights Reserved.