Minimal branching decomposition