标签: python networkx
我有一个图表,我需要更改某些节点的颜色。 例如
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29]
图中的所有节点都有蓝色。
我怎么能
[0, 1, 2, 3, 4, 5, 8, 9, 11, 15, 19, 21, 22, 23, 24, 25, 29]
更改为red?
red