separate Graph.hs from OldTopology.hs and now use (Within n) type
permuteGraph