print.critical_links: Print a Critical-Edge Analysis

View source: R/critical_links.R

print.critical_linksR Documentation

Description

Compact report of an identify_critical_links analysis: the populations compared, the outcome of the global test, and the size of the critical set together with its most significant edges. Use summary.critical_links for the call, the analysis settings and the node-level view as well.

Usage

## S3 method for class 'critical_links'
print(x, n = 6, digits = getOption("digits"), ...)

Arguments

x

An object of class "critical_links", as returned by identify_critical_links.

n

Number of critical edges to display. Default 6.

digits

Number of significant digits used for the $p$ values. Default getOption("digits").

...

Further arguments, currently ignored.

Value

x, invisibly.

See Also

summary.critical_links, plot.critical_links.

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)
result


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