my.general.dfs: Running depth first search on a tree and calling functions on...

View source: R/scelestial.R

my.general.dfsR 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


RScelestial documentation built on May 29, 2024, 9:41 a.m.