UNPKG

mermaid

Version:

Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.

7 lines (6 loc) 330 B
import type { Graph, NodeId } from './helpers.js'; /** * Builds a layering (array of layers) by traversing the driving tree in a * multitree order that tries to minimize crossings. */ export declare function buildMultitreeLayerOrder(g: Graph, rankOf: Record<NodeId, number>, laneOf: (id: NodeId) => string | null): NodeId[][];