Description Usage Arguments Value Examples
View source: R/generics-node.R
Get Node Attributes
1 2 3 4 5 6 7 8 9 | node_get_attr(x, attr_name, which_nodes = seq_nodes(x), ...)
## S3 method for class 'igraph'
node_get_attr(x, attr_name, which_nodes = seq_nodes(x),
...)
## S3 method for class 'network'
node_get_attr(x, attr_name, which_nodes = seq_nodes(x),
auto_unlist = TRUE, ...)
|
x |
|
attr_name |
|
which_nodes |
|
... |
Arguments passed to or from other methods. |
auto_unlist |
If possible, safely flatten the result to an atomic vector. |
atomic
vector
or <list>
1 2 3 4 5 | ig <- example_igraph()
node_count(ig)
nw <- example_network()
node_count(nw)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.