def draw_graph_circular(y, clusters='blue', ns=30):
G = nxG(y)
pos = graphviz_layout(G, prog='twopi', args='')
plt.figure()
nx.draw(G, pos, node_size=ns, alpha=0.8, node_color=clusters, with_labels=False)
plt.axis('equal')
文章目录