pyGraph: shorten height calculation
pyGraph: cut out some unneeded steps