Skip to main content

interface EdgeValuedGraphHashed<N,V>

An type-invariant immutable valued edge (undirected) graph. The nodes are internally maintained using HashMaps See the Graph documentation and the EdgeValuedGraphHashed API documentation

Companion namespace: EdgeValuedGraphHashed

Implemented by: EdgeValuedGraphHashed.NonEmpty<N,V>

Type parameters

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