The member of the minheap at index idx is changed.
Update the tree and make restore the heap property
Definition at line 218 of file effectivearea.c.
221 int parent=floor((idx-1)/2);
223 if(((
areanode*) treearray[idx])->area<((
areanode*) treearray[parent])->area)
224 up(tree,arealist,idx);
226 down(tree,arealist,idx);
static void up(MINHEAP *tree, __attribute__((__unused__)) areanode *e, int c)
Sift Up.
static void down(MINHEAP *tree, areanode *arealist, int parent)
Sift Down.
This structure is placed in an array with one member per point.
References down(), MINHEAP::key_array, and up().
Referenced by tune_areas().