結果 : create a graph from a dictionary python