結果 : how to implement a graph data structure in python