結果 : how to implement graph in python