Description Usage Arguments Value Examples
Preferential attachment can be included by passing some paramters to ...
1 2 3 4 5 6 7 8 | rewireEdge(
g,
edge = sample(E(g), 1),
what = c("origin", "destination"),
vs = V(g),
multi.edges = FALSE,
...
)
|
g |
An igraph object |
edge |
An igraph.es edge to rewire. Default is 1 random edge. |
what |
For directed graphs, what to rewire: "origin" or "destination" ? Default is "origin". |
vs |
igraph.vs vertices towards which edge origin or destination can be rewired. |
multi.edges |
Wheter or not multi edges can be created during the process. Default is FALSE. |
... |
Other parameters passed to |
An igraph object with 1 edge rewired.
1 2 3 4 | library(igraph)
g = generateSupplyNet()
for (i in 1:100)
g = rewireEdge(g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.