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