Transposing a directed graph is the process of reversing the direction of its edges.
ARCcore package's export function graph.directed.transpose
constructs a new DirectedGraph
instance
with the edges flipped:
const arccore = require('arccore');
var transposedDigraph;
var resposne = arccore.graph.directed.transpose(originalDigraph);
if (response.error)
console.error(response.error);
else
transposedDigraph = response.result;
Request
Reference to a DirectedGraph
container instance.
Response
Response object with error
and result
properties.
!error
then result is a reference to the new transposed DirectedGraph
instance.