powered by
dummy graph generation
graph_generation(n.nodes = 10, prob.connection = 0.5)
igraph object
number of nodes
node connection probability (default=0.5)
Generate a random graph
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)
Run the code above in your browser using DataLab