@rimbu/graph
Version:
Immutable Graph data structures for TypeScript
68 lines • 2.19 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GraphEmptyBase = void 0;
var tslib_1 = require("tslib");
var stream_1 = require("@rimbu/stream");
var map_custom_1 = require("@rimbu/collection-types/map-custom");
var GraphEmptyBase = /** @class */ (function (_super) {
tslib_1.__extends(GraphEmptyBase, _super);
function GraphEmptyBase() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(GraphEmptyBase.prototype, "nodeSize", {
get: function () {
return 0;
},
enumerable: false,
configurable: true
});
Object.defineProperty(GraphEmptyBase.prototype, "connectionSize", {
get: function () {
return 0;
},
enumerable: false,
configurable: true
});
GraphEmptyBase.prototype.streamNodes = function () {
return stream_1.Stream.empty();
};
GraphEmptyBase.prototype.streamConnections = function () {
return stream_1.Stream.empty();
};
GraphEmptyBase.prototype.hasNode = function () {
return false;
};
GraphEmptyBase.prototype.hasConnection = function () {
return false;
};
GraphEmptyBase.prototype.isSink = function () {
return false;
};
GraphEmptyBase.prototype.isSource = function () {
return false;
};
GraphEmptyBase.prototype.removeNode = function () {
return this;
};
GraphEmptyBase.prototype.removeNodes = function () {
return this;
};
GraphEmptyBase.prototype.getConnectionStreamFrom = function () {
return stream_1.Stream.empty();
};
GraphEmptyBase.prototype.getConnectionStreamTo = function () {
return stream_1.Stream.empty();
};
GraphEmptyBase.prototype.disconnect = function () {
return this;
};
GraphEmptyBase.prototype.disconnectAll = function () {
return this;
};
GraphEmptyBase.prototype.removeUnconnectedNodes = function () {
return this;
};
return GraphEmptyBase;
}(map_custom_1.EmptyBase));
exports.GraphEmptyBase = GraphEmptyBase;
//# sourceMappingURL=base.cjs.map