UNPKG

@rimbu/graph

Version:

Immutable Graph data structures for TypeScript

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