generate_random: Generates a Erdos Renyi random graph

View source: R/graph_util.R

generate_randomR Documentation

Generates a Erdos Renyi random graph

Description

Generates a Erdos Renyi random graph

Usage

generate_random(
  size,
  probability = 0.2,
  directed = FALSE,
  allow_cycles = FALSE
)

Arguments

size

is the number of nodes

probability

is the probability of edge formation between nodes

directed

generates directed graph when TRUE. Default value is FALSE

allow_cycles

produces loops in the graph when TRUE. Default value is FALSE

Value

igraph object


seekme94/influence.mining documentation built on Aug. 2, 2022, 10:19 p.m.