Skip to content
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

Experiment with force-directed graph layout #583

Open
pdawyndt opened this issue Dec 23, 2023 · 3 comments
Open

Experiment with force-directed graph layout #583

pdawyndt opened this issue Dec 23, 2023 · 3 comments

Comments

@pdawyndt
Copy link
Contributor

Check if force-directed graph layout would be an improvement for rendering objects in the heap. Such a layout may use the screen space more efficiently and place objects that reference each other closer together, but it could also result in objects jumping around when navigating between frames. Animation might alleviate this jumping behavior.

@pdawyndt
Copy link
Contributor Author

pdawyndt commented Mar 2, 2024

See this article for a short explanation why the current layout was chosen. Apparently, the original author experimented with force-directed graph layout, but was not satisfied with the end result.

@pdawyndt
Copy link
Contributor Author

pdawyndt commented Mar 9, 2024

Here's an example where the original layout engine of the Python Tutor has no optimal placement for nested data structures. Would have been better to align nested data horizontally instead of vertically.

image

Example: https://dodona.be/nl/courses/3355/series/36011/activities/1918665684/

@pdawyndt
Copy link
Contributor Author

Tree-like structures might be displayed as a tree.

Example: https://dodona.be/nl/courses/3355/series/36012/activities/601074743/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant