my.general.dfs {RScelestial} | R Documentation |
Running depth first search on a tree and calling functions on entrance/exit events
Description
It is used for internal purposes.
Usage
my.general.dfs(
nei,
v,
f,
extra,
in.call,
mid.call.before,
mid.call.after,
out.call
)
Arguments
nei |
Neighbor list for each vertex |
v |
Starting node |
f |
Parent node |
extra |
the shared object for the whole DFS |
in.call |
First function to call |
mid.call.before |
Function to call before calling child DFS |
mid.call.after |
Function to call after calling child DFS |
out.call |
Last function to call |
Value
the extra
parameter modified with in.call
, mid.call.before
, mid.call.after
, and out.call
functions
[Package RScelestial version 1.0.4 Index]