mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Types and tests copied from `dagre`, since `dagre-layout` is a drop-in replacement for it.
11 lines
247 B
TypeScript
11 lines
247 B
TypeScript
import * as dagre from "dagre-layout";
|
|
|
|
const graph = new dagre.graphlib.Graph();
|
|
graph.setGraph({})
|
|
.setDefaultEdgeLabel(() => ({}))
|
|
.setNode("a", {})
|
|
.setEdge("b", "c")
|
|
.setEdge("c", "d", {class: "class"});
|
|
|
|
dagre.layout(graph);
|