R igraph 手册页

如果您从 R 中使用 igraph,请使用此选项

rewire {igraph}R 文档

重连图的边

描述

请查看下面的链接了解已实现的重连方法。

用法

rewire(graph, with)

参数

要重连的图

使用

对其中一种重连方法的函数调用,请参见下面的详细信息。

重连后的图。

参见

其他重连函数: each_edge(), keeping_degseq()

示例

g <- make_ring(10)
g %>%
  rewire(each_edge(p = .1, loops = FALSE)) %>%
  plot(layout=layout_in_circle)
print_all(rewire(g, with = keeping_degseq(niter = vcount(g) * 10)))

[包 igraph 版本 1.3.5 索引]