UNPKG

@rimbu/graph

Version:

Immutable Graph data structures for TypeScript

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