public default Stream<E> toStream() {
        return StreamSupport.stream(Spliterators.spliteratorUnknownSize(this, Spliterator.IMMUTABLE | Spliterator.SIZED), false);
    }
Return the traversal as a {@link Stream}.

@return the traversal as a stream.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Traversal.java