added welsh_powell invariant, bridge graph to gt.py