Skip to main content

interface ArrowGraph.NonEmpty<N>

A non-empty type-invariant immutable arrow (directed) graph. See the Graph documentation and the ArrowGraph API documentation

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

Type parameters

NameDescription
Nthe node type

Methods

stream

Returns a non-empty Stream containing all graph elements of this collection as single tuples for isolated nodes and 2-valued tuples of nodes for connections.

Definition

stream(): Stream.NonEmpty<[N] | Link<N>>;

example
ArrowGraphHashed.of([1], [2, 3]).stream().toArray()  // => [[1], [2, 3]]

Overrides

NonEmpty.stream