-1
我具有邊緣的列表:使用權重來繪製圖形與NetworkX
[[0,0,0], [0,1,1], [0,2,1], [2,3,2], ....[n,m,t]]
其中索引0是一個節點,在列表中的索引1是一個節點,並且索引2是權重值。
我想要做的是這樣的:
```
0
/\
1 2 All values of weights of 1
\
3 all values of weight of 2
```
方向並不重要,它只是更容易在編輯器垂直畫。 我想用matplotlib導出。
謝謝!