Adding a class for clusters of nodes at each depth.