compute_central_graph: Compute the Central (Representative) Graph for a Population

View source: R/compute_central_graph.R

compute_central_graphR Documentation

Compute the Central (Representative) Graph for a Population

Description

This function computes the central graph for a given population by averaging the adjacency matrices of all graphs within that population.

Usage

compute_central_graph(graph_list)

Arguments

graph_list

A list of adjacency matrices representing brain networks.

Value

A single adjacency matrix representing the central graph of the population.

Examples

# Generate synthetic Control data
Control <- list(
  generate_random_graph(n_nodes = 5, edge_prob = 0.1),
  generate_random_graph(n_nodes = 5, edge_prob = 0.1)
)
central_graph <- compute_central_graph(Control)

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