Learn R Programming

brainGraph (version 2.2.0)

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_interlobar counts the number of edges between all vertices in one major lobe (e.g. Frontal) and all other major lobes.

Usage

count_homologous(g)

count_interlobar(g, lobe)

Arguments

g

An igraph graph object

lobe

A character string indicating the lobe to count from (uppercase)

Value

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

count_interlobar - a data.table of total, intra-, and inter-lobar edge counts

Examples

Run this code
# NOT RUN {
g1.frontal <- count_interlobar(g[[1]][[N]], 'Frontal')
# }

Run the code above in your browser using DataLab