graph_generation {DiffNet}R Documentation

dummy graph generation

Description

dummy graph generation

Usage

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

Arguments

n.nodes

number of nodes

prob.connection

node connection probability (default=0.5)

Details

Generate a random graph

Value

igraph object

Examples

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)


[Package DiffNet version 1.0.2 Index]