Projectivity checking in TreePotential / commented out until it can be tested.  Requires the graph be a Map[(Int,Int)]