Learn R Programming

robin (version 1.0.0)

random: random

Description

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

Usage

random(graph)

Arguments

graph

The output of prepGraph.

Value

An igraph object, a randomly rewired graph.

Examples

Run this code
# NOT RUN {
my_file <- system.file("example/football.gml", package="robin")
graph <- prepGraph(file=my_file, file.format="gml")
graphRandom <- random(graph=graph)
# }

Run the code above in your browser using DataLab