Count Edges {brainGraph} | R Documentation |
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, network, etc.).
Usage
count_homologous(g)
count_inter(g, group = c("lobe", "hemi", "network", "class", "gyrus",
"Yeo_7network", "Yeo_17network", "area", "Brodmann"))
Arguments
g |
A |
group |
Character string specifying which grouping to calculate edge
counts for. Default: |
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
Author(s)
Christopher G. Watson, cgwatson@bu.edu
Examples
## Not run:
g1.lobecounts <- count_inter(g[[1]][[N]], 'lobe')
## End(Not run)
[Package brainGraph version 3.1.0 Index]