Edge collapse working(?), bug in heap(?).