Learn R Programming

brainGraph (version 0.72.0)

edge_spatial_dist: Calculate Euclidean distance of edges

Description

This function calculates the Euclidean distance of edges between vertices of a graph. The distances are in mm and based on MNI space. The distances are NOT along the cortical surface, so can only be considered approximations, particularly concerning inter-hemispheric connections. The input graph must have atlas as a graph-level attribute.

Usage

edge_spatial_dist(g)

Arguments

g
An igraph graph object

Value

A numeric vector with length equal to the edge count of the input graph