UNPKG

@rimbu/graph

Version:

Immutable Graph data structures for TypeScript

14 lines 590 B
import { HashMap } from '@rimbu/hashed'; import { ValuedGraphContext, } from '@rimbu/graph/custom'; function createContext(options) { return Object.freeze(new ValuedGraphContext(true, 'ArrowValuedGraphHashed', options?.linkMapContext ?? HashMap.defaultContext(), options?.linkConnectionsContext ?? HashMap.defaultContext())); } const _defaultContext = createContext(); export const ArrowValuedGraphHashed = Object.freeze({ ..._defaultContext, createContext, defaultContext() { return _defaultContext; }, }); //# sourceMappingURL=arrow-valued-graph-hashed.mjs.map