1. Home
  2. Tree functions

Tree functions

These functions allow you to navigate around a Genstat tree structure.

    BNEXT Numbers of the nodes below a node
    BPREVIOUS Number of the node immediately above a node
    BTERMINAL Next terminal node after a node
    BSCAN Number of the node immediately after a node in a standard branch-by-branch order

Other functions provide information about trees and their nodes.

    BNBRANCHES Number of branches below a node
    BDEPTH Depth of a node
    BPATH Numbers of the nodes on the branch to a node
    BBRANCHES Numbers of the branches taken on the path to a node
    BBELOW All the nodes or all the terminal nodes below a node
    BNNODES Total number of nodes in a tree
    BMAXNODE Maximum node number in a tree
Updated on May 20, 2019

Was this article helpful?