Skip to main content

interface ArrowValuedGraphHashed.NonEmpty<N,V>

A non-empty type-invariant immutable valued arrow (directed) graph. The nodes are internally maintained using HashMaps See the Graph documentation and the ArrowValuedGraphHashed API documentation

Extends: Streamable.NonEmpty<T>, ArrowValuedGraphHashed<N,V>

Type parameters

NameDescription
Nthe node type
Vthe connection value type

Methods

stream

Returns a non-empty Stream containing all entries of this collection as tuples of key and value.

Definition

stream(): Stream.NonEmpty<ValuedGraphElement<N, V>>;

example
ArrowValuedGraphHashed.of([1, 2, 'a'], [2, 3, 'b']).stream().toArray()
// => [[1, 2, 'a'], [2, 3, 'b']]

Overrides

NonEmpty.stream