Some Graph Theory measure implementations in Python