Get a Sequence of Nodes for Indexing

seq_nodes(x)

Arguments

x

<igraph> or <network>

Value

<integer>

See also

Examples

ig <- example_igraph() seq_nodes(ig)
#> [1] 1 2 3 4 5
nw <- example_network() seq_nodes(nw)
#> [1] 1 2 3 4 5