Navigation
Synopsis Determine the direct predecessors of a graph node.
Function set[&T] predecessors(Graph[&T] G, &T From)
Usage import analysis::graphs::Graph;
Description Returns the direct predecessors of node From in Graph G.
Examples
rascal>import analysis::graphs::Graph;
ok
rascal>predecessors({<1,2>, <1,3>, <2,4>, <3,4>}, 4);
set[int]: {2,3}
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.