interface VariantGraph<N>
An type-variant immutable graph. See the Graph documentation and the VariantGraph API documentation
Companion namespace: VariantGraph
Implemented by: VariantGraph.NonEmpty<N>
Type parameters
Name | Description |
---|---|
N | the node type |
Properties
linkMap
Returns the nested Map representation of the graph connections.
linkMap
Definition
readonly linkMap:
VariantMap
<N,
VariantSet
<N>>;
example
ArrowValuedGraphHashed.of([1, 2, 'a'], [2, 3, 'b']).linkMap.toArray()
// => [[1, HashMap(2 -> 'a')], [2, HashMap(3 -> 'b')]]