![]() |
|
Navigation |
Synopsis Determine the graph nodes reachable from a set of nodes excluding certain intermediate nodes.
Function
set[&T] reachX(Graph[&T] G, set[&T] Start, set[&T] Excl)
Usage
import analysis::graphs::Graph;
Description Returns set of nodes in Graph
G that are reachable from any of the nodes
in Start via path that exclude nodes in Excl .
Examples
rascal>import analysis::graphs::Graph; ok rascal>reachX({<1,2>, <1,3>, <2,4>, <3,4>}, {1}, {2}); set[int]: {3,4} ![]() |