View source: R/ROBIN_external_function.R
| random | R Documentation |
This function randomly rewires the edges while preserving the original graph's degree distribution. For weighted graphs it rewires also the edges following the perturbation strategy rewire.w.type="Rewire".
random(graph, verbose = FALSE)
graph |
The output of prepGraph. |
verbose |
flag for verbose output (default as FALSE) |
An igraph object, a randomly rewired graph.
my_file <- system.file("example/football.gml", package="robin")
graph <- prepGraph(file=my_file, file.format="gml")
graphRandom <- random(graph=graph)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.