Helper functions for a tree.
Helper functions for graph branching.