Description Usage Arguments Details Value Author(s)
For distancebased measures, it is important to transform the edge weights so that the strongest connections are remapped to having the lowest weights. Then you may calculate e.g., the shortest path length which will include the strongest connections.
1  xfm.weights(g, xfm.type = c("1/w", "log(w)", "1w"), invert = FALSE)

g 
An 
xfm.type 
Character string specifying how to transform the weights
(default: 
invert 
Logical indicating whether or not to invert the transformation
(default: 
There are 3 options for the type of transform to apply:
1/w
: calculate the inverse
log(w)
: calculate the negative (natural) logarithm
1w
: subtract each weight from 1
To transform the weights back to original values, specify invert=TRUE
.
An igraph
graph object with transformed edge weights and a
graph attribute, xfm.type
, of the type of transform
Christopher G. Watson, [email protected]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.