Learn R Programming

igraph (version 1.3.5)

rev.igraph.es: Reverse the order in an edge sequence

Description

Reverse the order in an edge sequence

Usage

# S3 method for igraph.es
rev(x)

Value

The reversed edge sequence.

Arguments

x

The edge sequence to reverse.

See Also

Other vertex and edge sequence operations: c.igraph.es(), c.igraph.vs(), difference.igraph.es(), difference.igraph.vs(), igraph-es-indexing2, igraph-es-indexing, igraph-vs-indexing2, igraph-vs-indexing, intersection.igraph.es(), intersection.igraph.vs(), rev.igraph.vs(), union.igraph.es(), union.igraph.vs(), unique.igraph.es(), unique.igraph.vs()

Examples

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

Run the code above in your browser using DataLab