to_BFS {autoharp}R Documentation

Function to rearrage nodes in BFS

Description

Function to rearrage nodes in BFS

Usage

to_BFS(adj_list, node_info)

Arguments

adj_list

The output of lang_2_tree.

node_info

The output of lang_2_tree.

Details

This function is for an internal TreeHarp constructor use. It is not exported.

Value

An adjacency list and nodes info data frame in BFS order.


[Package autoharp version 0.0.10 Index]