def draw_text_graph(G):
plt.figure(figsize=(18,12))
pos = nx.spring_layout(G, scale=18)
nx.draw_networkx_nodes(G, pos, node_color="white", linewidths=0, node_size=500)
nx.draw_networkx_labels(G, pos, font_size=10)
nx.draw_networkx_edges(G, pos)
plt.xticks([])
plt.yticks([])
评论列表
文章目录