default_validate_tree: Validate a tree for use with 'rollup()'

View source: R/rollup.R

default_validate_treeR Documentation

Validate a tree for use with rollup()

Description

default_validate_tree() ensures that a tree is acyclic, loop-free, single-edged, connected, directed, and single-rooted with edge direction from child to parent.

Usage

default_validate_tree(tree)

Arguments

tree

igraph directed graph that is a valid single-rooted in-tree and whose vertex names are keys from the data set

Value

single root vertex identifier if tree is valid; stops otherwise

Examples

default_validate_tree(wbs_tree)

rollupTree documentation built on Feb. 10, 2026, 5:09 p.m.