"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.start = void 0;
const fromSpec_1 = require("./spec/fromSpec");
function start(system, spec) {
    if (!spec.id) {
        system.newSpec(spec);
    }
    const Class = (0, fromSpec_1.fromSpec)(spec, system.specs, {});
    const graph = new Class(system);
    system.graphs.push(graph);
    graph.play();
    return graph;
}
exports.start = start;
//# sourceMappingURL=start.js.map