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)
Details
If weights=NULL
and the graph has a 'weight'
attribute, that
will be returned. If weights=NA
, then that is returned.