rewire | R Documentation |
See the links below for the implemented rewiring methods.
rewire(graph, with)
graph |
The graph to rewire |
with |
A function call to one of the rewiring methods, see details below. |
The rewired graph.
Other rewiring functions:
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)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.