View source: R/graph_generation.R
graph_generation | R Documentation |
dummy graph generation
graph_generation(n.nodes = 10, prob.connection = 0.5)
n.nodes |
number of nodes |
prob.connection |
node connection probability (default=0.5) |
Generate a random graph
igraph object
graph = graph_generation(n.nodes = 10, prob.connection = 0.5)
initial_score = c(rep(0,5),0.2, 0.3, 0, 0, 0.5)
names(initial_score) = igraph::V(graph)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.