import e from "../../../../lodash-es/forEach.js";
//#region ../../node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js
function t(t, n, r) {
	var i = {}, a;
	e(r, function(e) {
		for (var r = t.parent(e), o, s; r;) {
			if (o = t.parent(r), o ? (s = i[o], i[o] = r) : (s = a, a = r), s && s !== r) {
				n.setEdge(s, r);
				return;
			}
			r = o;
		}
	});
}
//#endregion
export { t as addSubgraphConstraints };
