Weighted tree