If you want to check if geometry is linked, it’s pretty trivial- BMVert, BMEdge, and BMLoop all have lists of linked edges and faces. But what If you want to check if two UV verts are linked? Edges, Verts, Faces, and Loops all have indices that correspond to unique elements. UVs seem to be just buried in Loops without any way to tell them apart. For example- You may have a single vert with index 3 in your mesh, but that same vert could appear four times in UV space. Once you’re in UV space, I can’t find a way to tell the four UV verts apart. There’s got to be a way to do this, right?
In case anybody is wondering, I’m working on a script that operates on multiple “groups” of linked verts in a single selection- so I need to figure out a way to break the selection apart into separate groups based on whether or not they’re linked to another vert in the selection.