Using the Connectivity Sop with the For Each construct adds the ability to “class” each piece of connected primitives.
In other words, taking islands of geometry, the Connectivity node will group all connected primitives with the specified attribute name and auto increment the piece “class” counter eg 0, 1, etc.