Python-networkx库的五种layout(图形布局)

network 库内置五种图形布局设置:

  • circular_layout:顶点在一个圆环上均匀分布
  • random_layout:顶点随机分布
  • shell_layout:顶点在同心圆上分布
  • spring_layout:用Fruchterman-Reingold算法排列顶点
  • spectral_layout:根据图的Laplace特征向量排列顶点

你可能感兴趣的:(python,图论)