Learn R Programming

DiffNet (version 1.0.2)

graph_generation: dummy graph generation

Description

dummy graph generation

Usage

graph_generation(n.nodes = 10, prob.connection = 0.5)

Value

igraph object

Arguments

n.nodes

number of nodes

prob.connection

node connection probability (default=0.5)

Details

Generate a random graph

Examples

Run this code
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