Skip to main content

interface VariantValuedGraph.NonEmpty<N,V>

A non-empty type-variant immutable valued graph. See the Graph documentation and the VariantValuedGraph API documentation

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

Type parameters​

NameDescription
Nthe node type
Vthe connection value type

Methods​

stream​

Returns a non-empty Stream containing all graph elements of this collection as single tuples for isolated nodes and 3-valued tuples containing the source node, target node, and connection value for connections.

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