UNPKG

mermaid

Version:

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

13 lines (12 loc) 468 B
import type { Graph } from './helpers.js'; export declare const AUTOMATIC_LANE_ORDERING_RESTARTS = 8; export interface WeightedLaneEdge { a: string; b: string; weight: number; } export declare function laneArrangementCost(order: string[], weights: WeightedLaneEdge[]): number; export declare function buildWeightedLaneEdges(g: Graph): WeightedLaneEdge[]; export declare function optimizeTopLaneOrder(g: Graph, opts?: { restarts?: number; }): string[];