LoginSignup
0
1

More than 5 years have passed since last update.

NetworkXのlayoutのdefを12個抜粋してみた

Last updated at Posted at 2017-05-16

(参考)NetworkXのlayoutのdef
https://networkx.github.io/documentation/development/_modules/networkx/drawing/layout.html

def random_layout(G,dim=2):
def circular_layout(G, dim=2, scale=1):
def shell_layout(G,nlist=None,dim=2,scale=1):
def fruchterman_reingold_layout(G,dim=2,k=None,
                                pos=None,
                                fixed=None,
                                iterations=50,
                                weight='weight',
                                scale=1.0):
def _fruchterman_reingold(A, dim=2, k=None, pos=None, fixed=None,
                          iterations=50):
def _sparse_fruchterman_reingold(A, dim=2, k=None, pos=None, fixed=None,
                                 iterations=50):
def spectral_layout(G, dim=2, weight='weight', scale=1):
def _spectral(A, dim=2):
def _sparse_spectral(A,dim=2):
def _rescale_layout(pos,scale=1):
def setup_module(module):
def flatten(l):

(参考)バネ指向モデルというアルゴリズムで各ノードを見易いように配置
pos = spring_layout(G)
http://antibayesian.hateblo.jp/entry/20110828/1314491180

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1