public static < T > Spliterator < T > spliterator ( T root , Function < ? super T , ? extends Stream < T > > edges ) { DiGraphIterator dgi = new DiGraphIterator ( root , edges ) ; return Spliterators . spliteratorUnknownSize ( dgi , 0 ) ; }
Creates a Spliterator