View source: R/wrangle-weights.R
| invert_weights | R Documentation |
Turns strong ties into short distances. Path-based measures treat weights as costs, so similarity weights are inverted before such measures are computed.
invert_weights(
x,
method = c("reciprocal", "max_minus", "reflect"),
keep_format = FALSE,
directed = NULL
)
x |
Network input. |
method |
How to invert:
|
keep_format |
Logical. Return the input format when TRUE. |
directed |
Logical or NULL. If NULL (default), auto-detect. |
A cograph_network with inverted weights, or the input format
when keep_format = TRUE.
normalize_weights, shortest_paths
invert_weights(regulation_net, method = "reciprocal")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.