此对象是一个只读的类似dict的结构,具有节点键和相邻的dict值。邻居dict由边缘数据dict的邻居键入。 G.adj[3][2]['color'] = 'blue' 设置边缘的颜色 (3, 2) 到 "blue" .
確定! 回上一頁