Hi,
I'm looking for a solution to assign all neighboring polygons to a group. all polygons in a group should have the same number, including neighbors 2nd, 3rd etc. generations. Because there are hundreds of cells (polygons) and groups, manual assignment by assigning a value or editing is not an option. Unfortunately, with the nearest neighbor tool, I can only see the first-order neighbors and no groups.
Does anyone have a solution to my problem? 🙂

Polygon 2084 and 26073 should have the same number because they are connected and so they form a group. 26067, 26070, 26066,26068,... form another group....