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