edge_swap | R Documentation |
Edge Swap
edge_swap(net_to_swap, swaps = 500, verbose = FALSE, edge_color = NULL)
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'. |
A network with edges randomly swapped 'swaps' times with optional color assignments for the edges.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.