Learn R Programming

brainGraph (version 2.7.3)

CountEdges: Count number of edges of a brain graph

Description

count_homologous counts the number of edges between homologous regions in a brain graph (e.g. between L and R superior frontal).

count_inter counts the number of edges between and within all vertices in one group (e.g. lobe, hemi, or network).

Usage

count_homologous(g)

count_inter(g, group = c("lobe", "hemi", "network", "class"))

count_interlobar(g, lobe)

Arguments

g

An brainGraph graph object

group

Character string specifying which grouping to calculate edge counts for. Default: 'lobe'

lobe

Lobe name (deprecated)

Value

count_homologous - a named vector of the edge ID's connecting homologous regions

count_inter - a data.table of total, intra-, and inter-group edge counts

Examples

Run this code
# NOT RUN {
g1.lobecounts <- count_inter(g[[1]][[N]], 'lobe')
# }

Run the code above in your browser using DataLab