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