generate_random | R Documentation |
Generates a Erdos Renyi random graph
generate_random( size, probability = 0.2, directed = FALSE, allow_cycles = FALSE )
size |
is the number of nodes |
probability |
is the probability of edge formation between nodes |
directed |
generates directed graph when TRUE. Default value is FALSE |
allow_cycles |
produces loops in the graph when TRUE. Default value is FALSE |
igraph object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.