Closed kristofsmits closed 1 year ago
Thank you! I just made 2 demos and pushed them to the master branch: SugiyamaSixSameGraphExample EiglspergerSixSameGraphExample
They create the same graph 6 times and lay it out six times in the same window. To me, they all look the same. I'm probably missing something about your test that makes them different each time. Could you give me more detail, or perhaps an example of how you configured the layout options?
If you get a chance, define a Comparator
Hi, Thumbs up for your library, it's a great piece of work! Something I notice is that everytime I run the Sugiyama algorithm on exactly the same graph, the layout is different (or can be different) on each run compared to the previous run. I assume it has to do something with the fact that the vertices in JGraphT are stored in a Set and not in a List, so retrieval of graph nodes is always in an undeterministic order. Is there a way or would it be possible to provide functionality to calculate the layout in a deterministic way, so that every run the location of each vertex is exactly the same? Best regards, Kristof