randomWeight: randomWeight

View source: R/ROBINWeighted.R

randomWeightR Documentation

randomWeight

Description

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

Usage

randomWeight(graph, dist = "Other", verbose = FALSE)

Arguments

graph

The output of prepGraph.

dist

Option to rewire in a manner that retains overall graph weight regardless of distribution of edge weights. This option is invoked by putting any text into this field. Defaults to "Other". See rewireR for details.

verbose

flag for verbose output (default as FALSE)

Value

An igraph object, a randomly rewired graph.


robin documentation built on April 4, 2025, 6:08 a.m.