"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../Class/Functional");
const _ids_1 = require("../../../_ids");
class Graph0 extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['unit'],
            o: ['graph'],
        }, {
            input: {
                unit: {
                    ref: true,
                },
            },
            output: {
                graph: {
                    ref: true,
                },
            },
        }, system, _ids_1.ID_GRAPH);
    }
    f({ unit }, done) {
        if (!unit.__.includes('G')) {
            done(undefined, 'not a graph');
            return;
        }
        done({
            graph: unit,
        });
    }
}
exports.default = Graph0;
//# sourceMappingURL=index.js.map