//! Tree data structures and algorithms
use crate;
/// Trees implementing this trait are able to maintain node weights and subweights. The subweight
/// of a tree node is recursively defined as the sum of its own weight plus the subweights of its
/// children. The subweight of a leaf node is equal to its weight.