Closed ugurdogrusoz closed 1 year ago
The compound nodes now do not overlap when initializing their positions. The new compound node being added is compared with nodes only on that side of the hierarchy. A check box 'Display initial positions' is added to the side menu, which you need to check and run the HySE layout that will only run the initial part of the layout and only display the initial positions of the nodes.
I think this is great but I have the following concerns/issues with the initial placement:
[x] 2. I am worried that we are not efficiently calculating the location of components based on placement of previous components. I hope we're not checking the location of all previously placed nodes one by one to determine the location of a new component. There should be a quicker way.
[x] 3. To better debug the initial positioning, can we also have one more flag "Randomize initial positions" (true by default) which determines whether or not to randomize the initial positions of individual nodes. If not checked, we should see all nodes in the same component on top of each other.
There are a couple of methods that I have in mind to calculate the location of components, each with its drawback of course. We can discuss that on white board. Right now we are just checking the already added components on a specific side.
Much better, but I still see overlaps (here nodes n1,5,9,11,13,15,18 are on the hierarchy):
overlap-bug.graphml.txt
There is a calculation bug in the initial assignment code. It occurs randomly. I'm working to resolve it.
Is this resolved?
Yes, this is the same as #19 .
We should improve the initial placement of the non-hierarchic components in the following ways: