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
Name | Description |
---|---|
N | the node type |
Methods
stream
Returns a non-empty Stream containing all entries of this collection as tuples of key and value.
stream
Definition
stream():
Stream.NonEmpty
<GraphElement<N>>;
example
ArrowValuedGraphSorted.of([1, 2, 'a'], [2, 3, 'b']).stream().toArray()
// => [[1, 2, 'a'], [2, 3, 'b']]