Partition sweep

Open pull request for sparse graph coloring.

Has some old commits from bleeding-edge, but should be fine.