Description Usage Arguments Details Value
A common interface
1 2 3 4 5 6 7 | get_weights(x, ...)
## S3 method for class 'matrix'
get_weights(x, edges)
## S3 method for class 'igraph'
get_weights(g, edges)
|
x |
An adjacency matrix |
edges |
A matrix specifying edges as source->target ordered pairs. |
g |
An igraph object |
If an edge does not exist, the function will return a zero weight. The length of the output will always equal the number of edges provided as input.
Real-valued edge weights.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.