如果您从 R 中使用 igraph,请使用此选项
layout_with_lgl {igraph} | R 文档 |
一个为大型图生成布局的算法。
layout_with_lgl(
graph,
maxiter = 150,
maxdelta = vcount(graph),
area = vcount(graph)^2,
coolexp = 1.5,
repulserad = area * vcount(graph),
cellsize = sqrt(sqrt(area)),
root = NULL
)
with_lgl(...)
图 |
输入图 |
maxiter |
执行的最大迭代次数 (150)。 |
maxdelta |
一次迭代中顶点可能的最大变化量 (顶点的数量)。 |
area |
放置顶点的表面区域 (顶点数量的平方)。 |
coolexp |
模拟退火的冷却指数 (1.5)。 |
repulserad |
排斥力的抵消半径 ( |
cellsize |
网格单元格的大小。计算顶点之间的排斥力时,仅考虑同一或相邻网格单元格中的顶点 ( |
root |
放置在布局中心的顶点的 ID。 默认值为 -1,表示选择一个随机顶点。 |
... |
传递给 |
layout_with_lgl
适用于大型连通图,它类似于 Large Graph Layout 软件的布局生成器 (http://lgl.sourceforge.net/)。
一个数值矩阵,具有两列,行数与顶点数相同。
Gabor Csardi csardi.gabor@gmail.com
其他图布局: add_layout_()
, component_wise()
, layout_as_bipartite()
, layout_as_star()
, layout_as_tree()
, layout_in_circle()
, layout_nicely()
, layout_on_grid()
, layout_on_sphere()
, layout_randomly()
, layout_with_dh()
, layout_with_fr()
, layout_with_gem()
, layout_with_graphopt()
, layout_with_kk()
, layout_with_mds()
, layout_with_sugiyama()
, layout_()
, merge_coords()
, norm_coords()
, normalize()