reverse_edge: Reverse an edge in a directed graph

Description Usage Arguments Value

View source: R/misc-utilities.R

Description

Return a new directed graph instance a given edge oriented in the opposite direction relative to the input graph. Will not preserve graph, vertex, and edge attributes.

Usage

1

Arguments

g

a directed igraph object

e

an edge (integer index or "igraph.es" object)

Value

a new igraph object, the old graph with edges reverse.


robertness/lucy documentation built on May 27, 2019, 10:32 a.m.