UNPKG

@rimbu/graph

Version:

Immutable Graph data structures for TypeScript

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