Create cluster of nodes based on the value of its attribute