UNPKG

@rimbu/graph

Version:

Immutable Graph data structures for TypeScript

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