rg_reshuffling_tm: Reshuffle of a binary two-mode network

Description Usage Arguments Value Note Author(s) References Examples

Description

This function randomly resuffles a binary two-mode edgelist whilst maintaining each nodes' degree (both primary and secondary nodes).

Usage

1
 rg_reshuffling_tm(net, option="links", seed=NULL) 

Arguments

net

A two-mode network

option

Either link reshuffling (option="links") or weight reshuffling (option="weights"), see Opsahl et al. (2008).

seed

seed for random generator, set if you want random yet reproducable results.

Value

Returns a binary two-mode edgelist.

Note

version 1.0.0

Author(s)

Tore Opsahl; http://toreopsahl.com

References

http://toreopsahl.com/2009/05/29/weighted-rich-club-effect-a-more-appropriate-null-model-for-scientific-collaboration-networks/

Examples

1
2
3
4
5
## Load data
net <- rg_tm(10, 8, 0.4)

## Run the function on a subset
rg_reshuffling_tm(net, seed=1)

tnet documentation built on Feb. 25, 2020, 1:07 a.m.