fixed brooks invariant in gt.py