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