绘制尽可能靠近单线图的NetworkX图

时间:2018-12-12 02:25:39

标签: python matplotlib networkx

我有一个NetworkX图G

G.nodes  

NodeView((0, 1, 18, 24, 29, 2, 22, 3, 19, 5, 25, 6, 7, 8, 9, 20, 10, 11, 12, 13, 14, 15, 16, 17, 21, 23, 26, 27, 28, 30, 31, 32))

G.edges  
EdgeView([(0, 1), (1, 18), (1, 24), (1, 29), (18, 19), (24, 23), (29, 28), (29, 30), (2, 22), (22, 23), (3, 19), (19, 20), (5, 25), (25, 26), (6, 7), (7, 8), (8, 9), (8, 20), (9, 10), (20, 21), (10, 11), (11, 12), (12, 13), (13, 14), (14, 15), (15, 16), (16, 17), (26, 27), (27, 28), (30, 31), (31, 32)])

如何以类似于下面的表示形式呈现图形?我想要更接近下面结构的东西。 enter image description here

0 个答案:

没有答案