generate_small_world | R Documentation |
Generates a Watts & Strogatz small-world graph by rewiring a random graph, while keeping the degree distribution consistent
generate_small_world( size, probability = 0.1, 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.