Description Usage Arguments Value Author(s) See Also Examples
Generate random graph with expected edges.
1 | graph.rmedge(n, g, fix.edge = TRUE)
|
n |
Integer value, the number of random graph. |
g |
An igraph object, a baseline graph for generating random graph. |
fix.edge |
When fix.edge = TRUE, the number of edges is fixed and equal to the number of edges in the original graph g. When fix.edge = FALSE, the number of edges is randomly generated according to the connection probability of the original graph g. |
A data list in which each component is an igraph object.
Taichi Wang <taichi43@stat.sinica.edu.tw>
1 2 3 4 | library(igraph)
g = graph.ring(10)
graph.rmedge(n=1,g=g,fix.edge = TRUE)
graph.rmedge(n=1,g=g,fix.edge = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.