Skip to contents

Reverse the order in an edge sequence

Usage

# S3 method for igraph.es
rev(x)

Arguments

x

The edge sequence to reverse.

Value

The reversed edge sequence.

Examples

g <- make_(ring(10), with_vertex_(name = LETTERS[1:10]))
E(g)
#> + 10/10 edges from 08ae39e (vertex names):
#>  [1] A--B B--C C--D D--E E--F F--G G--H H--I I--J A--J
E(g) %>% rev()
#> + 10/10 edges from 08ae39e (vertex names):
#>  [1] A--J I--J H--I G--H F--G E--F D--E C--D B--C A--B