Join adjacent mesh faces

hi,

any idea how to join adjacent mesh faces? because the gh “mesh join” component gives a single combined mesh for ALL the faces (reference image) when my target is join those that are adjacent.
I searched in the forum and the only answer was doing that with “networkx” library but i couldn’t figure how to make it work that way!
any other ways?

If a mesh is in fact a collection (List) of meshes then the mesh.SplitDisjointPieces() Rhino Method (that exactly does the Disjoint GH component) yields the related mesh “islands”.

Otherwise (no disjoint pieces) the question has no meaning since for any valid mesh each face has at least one adjacent face.

thank you! that’s what i was looking for