如何使节点在networkx中保持不重叠的距离?

时间:2017-01-04 02:11:32

标签: python networkx

networkx节点重叠。如何使节点在networkx中保持不重叠的距离?另外,我想根据相关数量改变节点大小。

import networkx as nx 
import pandas as pd
import matplotlib.pyplot as plt
% matplotlib inline

author_net = pd.read_csv('net_data.csv',encoding='utf-8')
GA = nx.from_pandas_dataframe(author_net, source="author1", target="author2")

plt.figure(figsize=(50,50))
nx.draw(GA, node_size=400, alpha=0.7)

数据已开启:https://github.com/workload/my_networkx/blob/master/net_data.csv

enter image description here

0 个答案:

没有答案