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