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, rewire.w.type = "Rewire", verbose = FALSE)

Arguments

graph

The output of prepGraph.

rewire.w.type

method to rewire weighted graphs one of "Rewire", "Shuffle","Garlaschelli","Sum". "Garlaschelli" method only for count weights, "Sum" method only for continuous weights.

verbose

flag for verbose output (default as FALSE)

Value

An igraph object, a randomly rewired graph.


robin documentation built on Nov. 18, 2026, 1:08 a.m.