@param includeSelf Flag for if the current vertex is to be included in the results. @return Vertices that are descendants of this vertex in a directed graph.
(boolean includeSelf)
| 85 | * @return Vertices that are descendants of this vertex in a directed graph. |
| 86 | */ |
| 87 | public Stream<Vertex<T>> getAllDirectedChildren(boolean includeSelf) { |
| 88 | return includeSelf ? |
| 89 | Stream.concat(Stream.of(this), getAllDirectedChildren()) : getAllDirectedChildren(); |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * @return Vertices that are descendants of this vertex in a directed graph. |