functionMap (version 1.0.0)

twist_graph: Change the direction of each edge to the opposite in a graph

Description

I.e. from an in-adjacency list create an out-adjacency list, and vice versa.

Usage

twist_graph(graph)

Arguments

graph
The input graph, an adjacency list.

Value

The output graph