check_attributes: Check for vertex or edge attributes

check_weightsR Documentation

Check for vertex or edge attributes

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

check_weights(g, weights)

check_degree(g)

check_strength(g)

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.


cwatson/brainGraph documentation built on Feb. 21, 2024, 6:33 p.m.