shuffle_network_ws: Random Network Rewiring Without Preserving Degree...

View source: R/shuffling.R

shuffle_network_wsR Documentation

Random Network Rewiring Without Preserving Degree Distribution

Description

This function randomly rewires a directed network while preserving the total number of links but NOT the degree distribution. This is based on an approach described by Watts and Strogatz (1998) for small-world networks.

Usage

shuffle_network_ws(input_graph, delta = 100, directed = TRUE, weighted = TRUE)

Arguments

input_graph

A square adjacency matrix (directed, weighted or unweighted) or an igraph object.

delta

Number of rewiring attempts to perform.

directed

Logical, whether the network is directed (default: TRUE).

weighted

Logical, whether the network is weighted (default: TRUE).

Value

A shuffled adjacency matrix preserving the number of links but not degree distribution.

References

Watts, D. J., & Strogatz, S. H. (1998). Collective dynamics of 'small-world' networks. Nature, 393(6684), 440-442. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1038/30918")}


lsaravia/EcoNetwork documentation built on April 5, 2025, 1:51 p.m.