graph_generation: dummy graph generation

View source: R/graph_generation.R

graph_generationR 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)


DiffNet documentation built on Nov. 22, 2023, 5:07 p.m.