I think coarsen is working but it looks like Graph.triplets is broken
Seems like coarsen is working. It passes unit tests.
Fixed merge conflicts.