generator_graph | R Documentation |
Simulate several types of graphs
generator_graph(p = 20, graph = "tree", dens = 0.3, r = 2, k = 3)
p |
number of nodes |
graph |
type of graph, among "tree","scale-free","cluster" and "erdos" |
dens |
graph density (for cluster graphs) or edges probability (for Erdös-Renyi graphs) |
r |
within/between ratio connection probability (needed for cluster graphs) |
k |
number of groups in cluster graphs |
the adjacency matrix, in sparse format
generator_graph(p=10,graph="tree")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.