#1280 Fixed errors in graph.py related 947e56c9e157b072773dc7416e1033d07bac4757