Skip to contents

Reverse the order in a vertex sequence

Usage

# 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 549306c:
#>  [1] J I H G F E D C B A