Navigation
Synopsis Determine the bottom nodes (leaves) of a graph.
Function set[&T] bottom(Graph[&T] G)
Usage import analysis::graphs::Graph;
Description Returns the bottom nodes of Graph G, i.e., the leaf nodes that don't have any descendants.
Examples
rascal>import analysis::graphs::Graph;
ok
rascal>bottom({<1,2>, <1,3>, <2,4>, <3,4>});
set[int]: {4}
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.