randomize_graph: Randomize Graph

View source: R/randomize_graph.R

randomize_graphR Documentation

Randomize Graph

Description

This function randomizes the edges in a popgraph and returns a new graph.

Usage

randomize_graph(graph = NULL, mode = c("full", "degree")[2])

Arguments

graph

An object of type popgraph or igraph

mode

The kind of randomization to conduct, can be "full" which makes a new graph with the same number of edges as the original one, or "degree" which preserves the degree distribution of the


dyerlab/popgraph documentation built on July 22, 2022, 5:42 p.m.