Get the Names of Node Attributes

node_attr_names(x, ...)

# S3 method for igraph
node_attr_names(x, ...)

# S3 method for network
node_attr_names(x, ignore_na = TRUE, ...)

Arguments

x

<igraph> or <network>

...

Arguments passed to or from other methods.

ignore_na

logical(1L), default: TRUE. Whether to ignore the "na" attribute that {network} automatically creates.

Value

character()

Examples

ig <- example_igraph() node_attr_names(ig)
#> [1] "color" "size" "x" "y" "name" #> [6] "list_attr" "hetero_attr"
nw <- example_network() node_attr_names(nw)
#> [1] "vertex.names" "color" "size" "x" "y" #> [6] "list_attr" "hetero_attr"