As input, any mesh should be able to be taken. I kind of like the result, but wish it would be more organic. I am thinking about something like this or this. Does anyone have an idea how to do that? It should be compatible with macOS.
Line Topology is just Topology so connection between objects number (integers). So you’ll have to make first the extraction of points that are alone, then make a recursion until there is no more “alone” line. Not easy but if you don’t try a bit harder you will never learn.
it is done in Grasshopper only an using recursion with Anemone.
The logic is to have the index of point that that a connectivity lower or equal to the number specified (1 in your case). Then I have the index of points that are not good are transformed to points, like the index that represent the line. Closest Point is used to know which lines have a points that has connectivity lower or equal to the number specified (I used that because I was not able to use sets !!!). If points have a distance lower to 0.1 then it means that the lines is an end, so we don’t use it.
It is quite generic. You put your lines and it outputs a graph without dead end. If you don’t want lines you put 1 in the panel
And a version with Set, i I have to transform data to int (because series output double! ), it works and it is a bit more simple.
So you have the index of points that are alone and index of points that are used for a line, if a line uses one a the index, there is an intersection with the set so its lenght is > 0. Then just choose the good to output from dispatch.
it seems you are not doing a lot of effort. I recommend you try to understand what are doing the components. Without that, it seems a worthless effort for me to help you.
You used a Dispatch component without feeding the list "L"of data that has to be dispatched