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 © 2023 Chris Russell
Fri Mar 31 2023 14:22:25 GMT-0400 (Eastern Daylight Time)

undefined/@encapsule/holism v0.0.10
undefined/polytely-app-runtime v