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