Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图有一个未填充的节点,我的意思是应该有它的框架,轮廓。方法有很多选择
draw_networkx
但找不到这个
在draw_networkx中,您可以将参数设置node_color为'none':
node_color
'none'
nx.draw_networkx(G, node_color='none')
这将产生透明节点,但进出透明节点的边缘将在节点内可见。我觉得这种丑陋,但我还没有找到解决这个问题的好方法。