example_graphs: Example graphs

View source: R/example_graphs.R

example_graphsR Documentation

Example graphs

Description

Generate a random list of tbl_graph objects.

Usage

example_graphs(
  n = c(4, 5, 10),
  p = 0.5,
  colors = pals::viridis(length(n)),
  seed = 2023
)

Arguments

n

Number of nodes for each graph.

p

The probability of nodes connecting between graphs (on a 0-1 scale).

colors

Color for each graph.

seed

Random seed.

Value

A list of tbl_graph objects.

Examples

grs <- example_graphs()

RajLabMSSM/echodeps documentation built on Oct. 31, 2023, 7:20 a.m.