|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
39 static inline int left (
int i) {
return i*2+1; }
40 static inline int right (
int i) {
return (i+1)*2; }
41 static inline int parent(
int i) {
return (i-1) >> 1; }
49 while (i != 0 &&
lt(x,
heap[p])){
65 if (!
lt(
heap[child], x))
break;
124 for (
int i = 0; i <
heap.
size(); i++)
128 for (
int i = 0; i < ns.
size(); i++){
132 for (
int i =
heap.
size() / 2 - 1; i >= 0; i--)
138 for (
int i = 0; i <
heap.
size(); i++)
void build(vec< int > &ns)
int operator[](int index) const
void clear(bool dealloc=false)
void clear(bool dealloc=false)
const T & last(void) const
void percolateDown(int i)