Print internal nodes and pruned nodes separately