"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function findBackboneBundleNodes(nodeMap, bundleMap) {
    var backboneBundleNodes = [];
    // Find nodes in the clusters whose entire cluster is on the backbone.
    for (var bundle in bundleMap) {
        var flag = true;
        if (nodeMap[bundle].width !== 0) {
            flag = false;
        }
        for (var _i = 0, _a = bundleMap[bundle].bunchedNodes; _i < _a.length; _i++) {
            var i = _a[_i];
            if (nodeMap[i].width !== 0) {
                flag = false;
            }
        }
        if (flag) {
            backboneBundleNodes.push(bundle);
            for (var _b = 0, _c = bundleMap[bundle].bunchedNodes; _b < _c.length; _b++) {
                var n = _c[_b];
                backboneBundleNodes.push(n);
            }
        }
    }
    return backboneBundleNodes;
}
exports.default = findBackboneBundleNodes;
//# sourceMappingURL=findBackboneBundleNodes.js.map