Reverse the order in a vertex sequence

# S3 method for class '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 0d82f9b:
#>  [1] J I H G F E D C B A