Learn R Programming

brainGraph (version 2.7.3)

check_weights: Check for edge weights

Description

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

Usage

check_weights(g, weights)

Arguments

Details

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