interface ArrowValuedGraphHashed<N,V>
An type-invariant immutable valued arrow (directed) graph. The nodes are internally maintained using HashMaps See the Graph documentation and the ArrowValuedGraphHashed API documentation
Companion namespace: ArrowValuedGraphHashed
Implemented by: ArrowValuedGraphHashed.NonEmpty<N,V>
Type parameters
Name | Description |
---|---|
N | the node type |
V | the connection value type |
example
const g1 = ArrowValuedGraphHashed.empty<number, string>()
const g2 = ArrowValuedGraphHashed.of([1], [2, 3, 'a'], [2, 4, 'b'])