"use strict";Liferay.Loader.define("portal-workflow-kaleo-designer-web$dagre@0.8.2/lib/order/init-order",["module","exports","require","../lodash"],(function(r,n,e){window;var o=e("../lodash");r.exports=function initOrder(r){var n={},e=o.filter(r.nodes(),(function(n){return!r.children(n).length})),t=o.max(o.map(e,(function(n){return r.node(n).rank}))),i=o.map(o.range(t+1),(function(){return[]})),a=o.sortBy(e,(function(n){return r.node(n).rank}));return o.forEach(a,(function dfs(e){if(!o.has(n,e)){n[e]=!0;var t=r.node(e);i[t.rank].push(e),o.forEach(r.successors(e),dfs)}})),i}}));
//# sourceMappingURL=init-order.js.map