edge_swap: Edge Swap

View source: R/edge_swap.R

edge_swapR Documentation

Edge Swap

Description

Edge Swap

Usage

edge_swap(net_to_swap, swaps = 500, verbose = FALSE, edge_color = NULL)

Arguments

net_to_swap

An object of type 'network'. This is the network you want the swaps to be conducted on. All characteristics of this network, aside from the attribute you want to swap, will be the same in the result.

swaps

Integer. The number of edge swaps you want to conduct. Defaults to 500.

verbose

Logical. Would you like the function to display status messages? Defaults to 'TRUE'.

edge_color

Color as string or R color ID. Defaults to 'NULL'.

Value

A network with edges randomly swapped 'swaps' times with optional color assignments for the edges.


Epsian/nattswap documentation built on March 29, 2022, 4:27 a.m.