-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layout Algorithm Struggle #244
Comments
@TomStevenson1 you need to actually run the algorithm by clicking on the button with a play icon. Both Gephi and ipysigma work like this because there is no deterministic way to know when the layout might be complete, so we need to rely on the user to actually stop the layout once it is done. You can give the |
Hi @Yomguithereal, Unfortunately, I ran the scatter and run buttons before it, but that wasn’t the ideal solution. What helped was using spring_layout via NetworkX, then multiplying the coordinates by a certain scale factor and incorporating a random scale factor. However, I’ve had some difficulty reducing the visual density. Even if the X and Y coordinates are off by 200 units or pixels (?), they still appear very close together upon closer inspection. I’ve adjusted the edge and node sizes, but I still can’t get anything as sparse as the demo visualization. Any guidance would be appreciated. Realistically, how can I get my nodes and edges to look more like what you had in the demo? I noticed that in your demo, the coordinates were in the double digits and still had proper spacing, so I assume the issue lies with my node and edge sizing. Thanks, |
I applied the same settings you used for the demo and the data still took roughly the same shape. I may try some other methods in the meantime, but it doesn't seem like it is a Sigma settings problem unless you have a smart throught @Yomguithereal |
I think you don't let the layout run long enough. One thing to notice is that sigma/iypsigma and Gephi have different philosophies regarding the scale of the nodes wrt the space (x, y) they exist in, so you should probably drop your Then I also encourage you to play with values given to Something that you can try also is to start from a circular layout (https://networkx.org/documentation/stable/reference/generated/networkx.drawing.layout.circular_layout.html) because for some graphs it tends to improve convergence vs. a random square space. |
Hi,
I've been trying to display a dependency map DOT file by converting it into a format that ipysigma can better accept. Unfortunately, after setting everything up, the Sigma visualization hasn't yielded any meaningful results yet.
I tried loading the DOT file into Gephi and got almost the same output. I assume this is because both tools rely on similar graphics engines for node placement. I'm wondering if I'm missing something major or if there's something else I should try.
My current Sigma setup is as follows:
This produces the following output:
I know I should look into this, but even after adjusting the layout settings, I see no noticeable change.
Where else should I look? My main struggle is making this dense graph more free-flowing, like in the demo site. I feel like I may be missing something obvious, so please feel free to point out any major issues.
Thanks!
The text was updated successfully, but these errors were encountered: