MCPcopy
hub / github.com/Col-E/Recaf / getAllDirectedChildren

Method getAllDirectedChildren

src/main/java/me/coley/recaf/graph/Vertex.java:87–90  ·  view source on GitHub ↗

@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)

Source from the content-addressed store, hash-verified

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.

Callers 2

getAllLeavesMethod · 0.95
testDirectedChildrenMethod · 0.80

Calls 3

getDirectedChildrenMethod · 0.95
concatMethod · 0.45
ofMethod · 0.45

Tested by 1

testDirectedChildrenMethod · 0.64