implemented a min-degree-first coloring algorithm using a heapqueue, not tested yet