Learn R Programming

HEMDAG (version 2.1.3)

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