我在许多研究论文中看到了有向图的图形表示,其中节点的放置似乎取决于它们的邻接关系,而不是x和y轴的特征。来自Conover, Michael D., et al. "Political polarization on twitter." Fifth international AAAI conference on weblogs and social media. 2011.的一个例子

如何从预先构造的NetworkX DiGraph中获得这样的表示?
发布于 2021-07-09 21:49:09
NetworkX内置了绘制图形的函数(参见here)。基本上,您可以调用它们并传递您构造的DiGraph。从他们自己的示例中复制:
G = nx.dodecahedral_graph()
nx.draw(G)
nx.draw(G, pos=nx.spring_layout(G))https://stackoverflow.com/questions/68317863
复制相似问题