node_get_attr: Get Node Attributes

Description Usage Arguments Value Examples

View source: R/generics-node.R

Description

Get Node Attributes

Usage

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, ...)

Arguments

x

<igraph> or <network>

attr_name

<character> (scalar)

which_nodes

<numeric> or <logical>

...

Arguments passed to or from other methods.

auto_unlist

If possible, safely flatten the result to an atomic vector.

Value

atomic vector or <list>

Examples

1
2
3
4
5

knapply/snatools documentation built on Oct. 22, 2019, 12:05 p.m.