Learn R Programming

HEMDAG (version 2.7.4)

compute.flipped.graph: Flip graph

Description

Compute a directed graph with edges in the opposite direction.

Usage

compute.flipped.graph(g)

Arguments

g

a graphNEL directed graph

Value

A graph (as an object of class graphNEL) with edges in the opposite direction w.r.t. g.

Examples

Run this code
# NOT RUN {
data(graph);
g.flipped <- compute.flipped.graph(g);
# }

Run the code above in your browser using DataLab