Skip to contents

Reverse the order in a vertex sequence

Usage

# S3 method for igraph.vs
rev(x)

Arguments

x

The vertex sequence to reverse.

Value

The reversed vertex sequence.

Examples

g <- make_(ring(10), with_vertex_(name = LETTERS[1:10]))
V(g) %>% rev()
#> + 10/10 vertices, named, from df5e31d:
#>  [1] J I H G F E D C B A