generate_scale_free | R Documentation |
Generates a Barabasi scale-free graph
generate_scale_free( size, preference = 1, directed = FALSE, allow_cycles = FALSE )
size |
is the number of nodes |
preference |
is the power of preferencial attachment. Default is linear, i.e. 1 |
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.