rev.igraph.vs: Reverse the order in a vertex sequence

View source: R/iterators.R

rev.igraph.vsR Documentation

Reverse the order in a vertex sequence

Description

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.

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.es(), union.igraph.es(), union.igraph.vs(), unique.igraph.es(), unique.igraph.vs()

Examples

g <- make_(ring(10), with_vertex_(name = LETTERS[1:10]))
V(g) %>% rev()

igraph documentation built on Oct. 20, 2024, 1:06 a.m.