random: random

View source: R/ROBIN.R

randomR Documentation

random

Description

This function randomly rewires the edges while preserving the original graph's degree distribution.

Usage

random(graph, verbose = FALSE)

Arguments

graph

The output of prepGraph.

verbose

flag for verbose output (default as FALSE)

Value

An igraph object, a randomly rewired graph.

Examples

my_file <- system.file("example/football.gml", package="robin")
graph <- prepGraph(file=my_file, file.format="gml")
graphRandom <- random(graph=graph)

robin documentation built on May 17, 2022, 1:07 a.m.