UNPKG

@rimbu/graph

Version:

Immutable Graph data structures for TypeScript

15 lines 990 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ArrowValuedGraphSorted = void 0; var tslib_1 = require("tslib"); var sorted_1 = require("@rimbu/sorted"); var custom_1 = require("@rimbu/graph/custom"); function createContext(options) { var _a, _b; return Object.freeze(new custom_1.ValuedGraphContext(true, 'ArrowValuedGraphSorted', (_a = options === null || options === void 0 ? void 0 : options.linkMapContext) !== null && _a !== void 0 ? _a : sorted_1.SortedMap.defaultContext(), (_b = options === null || options === void 0 ? void 0 : options.linkConnectionsContext) !== null && _b !== void 0 ? _b : sorted_1.SortedMap.defaultContext())); } var _defaultContext = createContext(); exports.ArrowValuedGraphSorted = Object.freeze(tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: createContext, defaultContext: function () { return _defaultContext; } })); //# sourceMappingURL=arrow-valued-graph-sorted.cjs.map