#include <ogdf/lib/minisat/mtl/Heap.h>
Public Member Functions | |
Heap (const Comp &c) | |
void | build (vec< int > &ns) |
void | clear (bool dealloc=false) |
void | decrease (int n) |
bool | empty () const |
void | increase (int n) |
bool | inHeap (int n) const |
void | insert (int n) |
int | operator[] (int index) const |
int | removeMin () |
int | size () const |
void | update (int n) |
Private Member Functions | |
void | percolateDown (int i) |
void | percolateUp (int i) |
Static Private Member Functions | |
static int | left (int i) |
static int | parent (int i) |
static int | right (int i) |
Private Attributes | |
vec< int > | heap |
vec< int > | indices |
Comp | lt |
|
inline |
|
inline |
|
inlinestaticprivate |
|
inline |
|
inlinestaticprivate |
|
inline |
|
private |