my.dfs: Runs DFS on tree and calculates parent of each node as well...

Description Usage Arguments Value

View source: R/scelestial.R

Description

It is used for internal purposes.

Usage

1
my.dfs(graph, root = NULL)

Arguments

graph

The tree

root

The starting node of DFS.

Value

a list with father representing the parent node, and balance.depth representing the distance between the node and the farthest node to it, as the elements.


RScelestial documentation built on Dec. 11, 2021, 10:02 a.m.