Skip to contents

Searches assignment results for a connectivity component that splits into two subnetworks (each with more than three nodes when available), plots the subgraph colored by assignment group, and saves the demo as an RDS list.

Usage

TRACE_cache_network_split_demo(
  object,
  i.pol = 0L,
  demo_id = 1L,
  cache_dir = NULL,
  cache_file = NULL,
  plot_file = NULL,
  min_group_size = 4L,
  rank = 1L,
  exclude = list()
)

Arguments

object

MSdev object with TRACE network assignment results.

i.pol

Polarity index (`0` = negative, `1` = positive).

demo_id

Demo index (`1`, `2`, ...). Files are saved as `cache/demon.rds` and `cache/demon.pdf`.

cache_dir

Directory for cached demo files.

cache_file

Optional explicit RDS output path (overrides `demo_id`).

plot_file

Optional explicit plot output path (overrides `demo_id`).

min_group_size

Minimum nodes per assignment group.

rank

Alias for `demo_id` when selecting the split candidate.

Value

Invisibly, the demo list.