DirectedGraph Transpose Algorithm Reference
Login
-Home
/
-Documentation
/
-ARCcore
/
-graph
/
-Algorithms
/
Digraph Transpose
+DirectedGraph
-Algorithms
Examples
Digraph Transpose
Digraph Breadth-First
Digraph Depth-First
Digraph Traversals
DirectedGraph Transpose Algorithm Reference
DirectedGraph transpose reverses the direction of edges creating a new DirectedGraph instance.

ARCcore.graph.directed.transpose

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: If not null, then a string explaining what went wrong.
  • result: Iff !error then result is a reference to the new transposed DirectedGraph instance.
Encapsule Project, Seattle WA
Copyright © 2018 Chris Russell
Sat Dec 15 2018 03:35:47 GMT-0500 (EST)

Encapsule/holism v0.0.26
Documents Under Contruction