UNPKG

@rimbu/graph

Version:

Immutable Graph data structures for TypeScript

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