Extract a node attribute.
node_get_attr(.net, .node_attr, .node_index = node_seq(.net)) # S3 method for igraph node_get_attr(.net, .node_attr, .node_index = node_seq(.net)) # S3 method for network node_get_attr(.net, .node_attr, .node_index = node_seq(.net))
.net | network of class |
---|---|
.node_attr |
|
.node_index |
|
vector
(typically)
node_get_attr(.net = florence_business_ig, .node_attr = "wealth")#> [1] 10 36 55 44 20 32 8 42 103 48 49 3 27 10 146 48florence_business_nw %>% node_get_attr(.node_attr = "wealth")#> [1] 10 36 55 44 20 32 8 42 103 48 49 3 27 10 146 48