Open utkuoruc opened 2 years ago
Each Node has a BoundingBox with coordinates. I think you might use some sorting algorithm and swap BoundingBoxes or their coords (if I understand things right)
The previous comment will work (you can use node.Center for sorting), but also have a look at SameLayerSample.csproj. Over there the nodes "A", "B", "C" are ordered from left to right horizontally.
Thanks for all of the answers, I solved it with creating invisible nodes from one to another. By this way it is ordering itself everytime. good work!
You probably meant "invisible edges".
yes
Hello, my problem is with ordering nodes. I want to order my nodes but I don't know how to do it.