interface ArrowGraphSorted<N>
An type-invariant immutable valued arrow (directed) graph. The connections are internally maintained using sorted collections See the Graph documentation and the ArrowGraphSorted API documentation
Companion namespace: ArrowGraphSorted
Implemented by: ArrowGraphSorted.NonEmpty<N>
Type parameters
Name | Description |
---|---|
N | the node type |
example
const g1 = ArrowGraphSorted.empty<number>()
const g2 = ArrowGraphSorted.of([1], [2, 3], [2, 4])