interface EdgeValuedGraph.NonEmpty<N,V>
A non-empty type-invariant immutable valued edge (undirected) graph. See the Graph documentation and the EdgeValuedGraph API documentation
Extends: Streamable.NonEmpty<T>
, EdgeValuedGraph<N,V>
Type parameters
Name | Description |
---|---|
N | the node type |
V | the connection value 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
<ValuedGraphElement<N, V>>;
example
EdgeValuedGraphHashed.of([1, 2, 'a'], [2, 3, 'b']).stream().toArray()
// => [[1, 2, 'a'], [2, 3, 'b']]