![]() |
|
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} ![]() |