check_attributes: Check for vertex or edge attributes

Description Usage Value

Description

check_weights is a helper function for dealing with edge weights that get passed to different igraph functions.

check_degree is a helper function to check if degree is a vertex attribute of the input graph. Returns a numeric vector of the degree values.

check_strength is a helper function to check if strength is a vertex attribute of the input graph. Returns a numeric vector of the strength values.

Usage

1
2
3
4
5

Value

check_weights - If weights=NULL and the graph has a 'weight' attribute, then NULL will be returned. If weights=NA, then NA is returned.


brainGraph documentation built on Oct. 23, 2020, 6:37 p.m.