Skip to main content

interface ArrowGraphSorted.NonEmpty<N>

A non-empty type-invariant immutable valued arrow (directed) graph. The connections are internally maintained using sorted collections See the Graph documentation and the ArrowGraphSorted API documentation

Extends: Streamable.NonEmpty<T>, ArrowGraphSorted<N>

Type parameters

NameDescription
Nthe node type

Methods

stream

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

Definition

stream(): Stream.NonEmpty<GraphElement<N>>;

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

Overrides

NonEmpty.stream