"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const feasibleTree = require("./src-dagre-rank-feasible-tree.cjs");
const networkSimplex = require("./src-dagre-rank-network-simplex.cjs");
const util = require("./src-dagre-rank-util.cjs");
function rank(g) {
  switch (g.graph().ranker) {
    case "network-simplex":
      networkSimplexRanker(g);
      break;
    case "tight-tree":
      tightTreeRanker(g);
      break;
    case "longest-path":
      longestPathRanker(g);
      break;
    default:
      networkSimplexRanker(g);
  }
}
var longestPathRanker = util.longestPath;
function tightTreeRanker(g) {
  util.longestPath(g);
  feasibleTree.feasibleTree(g);
}
function networkSimplexRanker(g) {
  networkSimplex.networkSimplex(g);
}
exports.rank = rank;
//# sourceMappingURL=src-dagre-rank-index.cjs.map
