get_num_children: Get number of children

Description Usage Arguments Value

View source: R/get-num-children.R

Description

Returns the number of children of a given active node, excluding terminals if requested.

Usage

1
get_num_children(tree, order, exclude_terminals = FALSE)

Arguments

tree

A suffix tree as produced by new_tree.

order

Amount of context (e.g. 0 means no context).

exclude_terminals

(Logical scalar) Whether to exclude terminal symbols from this count.

Value

The number of children of the active node with order as specified, possibly including terminal symbols.


pmcharrison/tst documentation built on May 24, 2019, 7:36 a.m.