Reverse the order in an edge sequence
Usage
# S3 method for class 'igraph.es'
rev(x)See also
Other vertex and edge sequence operations:
c.igraph.es(),
c.igraph.vs(),
difference.igraph.es(),
difference.igraph.vs(),
igraph-es-indexing,
igraph-es-indexing2,
igraph-vs-indexing,
igraph-vs-indexing2,
intersection.igraph.es(),
intersection.igraph.vs(),
rev.igraph.vs(),
union.igraph.es(),
union.igraph.vs(),
unique.igraph.es(),
unique.igraph.vs()
Examples
g <- make_(ring(10), with_vertex_(name = LETTERS[1:10]))
E(g)
#> ── <edge sequence> 10/10 · vertex names · from ac57b7a ─────────────────────────
#> [1] A ─ B B ─ C C ─ D D ─ E E ─ F F ─ G G ─ H H ─ I I ─ J A ─ J
E(g) %>% rev()
#> ── <edge sequence> 10/10 · vertex names · from ac57b7a ─────────────────────────
#> [1] A ─ J I ─ J H ─ I G ─ H F ─ G E ─ F D ─ E C ─ D B ─ C A ─ B
