Skip to main content

interface ArrowValuedGraphSorted<N,V>

An type-invariant immutable valued arrow (directed) graph. The nodes are internally maintained using SortedMaps See the Graph documentation and the ArrowValuedGraphSorted API documentation

Companion namespace: ArrowValuedGraphSorted

Implemented by: ArrowValuedGraphSorted.NonEmpty<N,V>

Type parameters

NameDescription
Nthe node type
Vthe connection value type
example
const g1 = ArrowValuedGraphSorted.empty<number, string>()
const g2 = ArrowValuedGraphSorted.of([1], [2, 3, 'a'], [2, 4, 'b'])