Learn R Programming

brainGraph (version 0.55.0)

spatial.dist: Calculate Euclidean distance between vertices (MNI space)

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

spatial.dist(g)

Arguments

g
An igraph graph object

Value

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