summary.critical_links: Summarise a Critical-Edge Analysis

View source: R/critical_links.R

summary.critical_linksR Documentation

Description

Extends print.critical_links with the settings the analysis used and a node-level view of the critical set: the nodes that participate in the most critical edges, as returned by get_critical_nodes.

Usage

## S3 method for class 'critical_links'
summary(object, node_labels = NULL, ...)

Arguments

object

An object of class "critical_links".

node_labels

Optional character vector of node labels, passed to get_critical_nodes.

...

Further arguments, currently ignored.

Value

An object of class "summary.critical_links", a list with the components n_critical, n_edges, p_value, settings, group_sizes, critical_edges and critical_nodes.

See Also

identify_critical_links, get_critical_nodes.

Examples


control <- generate_category_graphs(n_graphs = 15, n_nodes = 10,
  n_communities = 2, base_intra_prob = 0.8, base_inter_prob = 0.2, seed = 1)
patient <- generate_category_graphs(n_graphs = 15, n_nodes = 10,
  n_communities = 2, base_intra_prob = 0.5, base_inter_prob = 0.5, seed = 2)
result <- identify_critical_links(list(Control = control, Patient = patient),
  n_permutations = 200, seed = 42)
summary(result)


BrainNetTest documentation built on Dec. 3, 2026, 5:08 p.m.