link tree with sub diagram