Sverchok order edges and verts

Hi forum,

I have a Sverchok node tree that makes some edges and verts form an object but the order of the edges and verts isn’t what I want it to be.

Is there a way to reorder the edges and verts so that they are a proper sequence and not jumping around randomly? I tried to use mesh join on the verts and edges to see if the order would come out organised from end points to end point but that didn’t work. The attached image shows the indexes of each edge and vert and how there isn’t a logical sequence to them.

Thanks for the help.

1 Like

use Scripted node light with topo sort example (on bottom of presets)

Hi Nikitron! Works great thanks! Attached is an image of the result I got.

I understand a bit of java and javascript but not python yet. Is there a part in the topo sort code that I can change so that the last endpoint isn’t connected to the first endpoint? So that it doesn’t “cycle” but stops at the last endpoint. In my case edge 24 would not be generated.

If there isn’t a way to do it inside the topo sort code I will remove it with the list item node.

Thanks again!

1 Like

you can use list item node to select edge of number 0 or -1 and output rest of edges fo viewer.
Or use UVconnect node that will give you needed topology