hamilton icon indicating copy to clipboard operation
hamilton copied to clipboard

[Research] Better layout algorithm options for Hamilton UI dataflows

Open skrawcz opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. The hamilton UI layout algorithm could be improved. Things can get mixed / muddled.

Describe the solution you'd like Have a better layout algorithm or optimization toggle.

Describe alternatives you've considered N/A

Additional context Try the Hamilton UI with the Hamilton UI example, and then toggle the various options on layout, and you'll see an example like the one below. The hard part is that this DAG dependent.

Screen Shot 2024-07-18 at 2 36 12 PM

skrawcz avatar Jul 18 '24 20:07 skrawcz

This is an open ended task as it requires a bit of research.

skrawcz avatar Jul 18 '24 21:07 skrawcz

The entanglement is due to the DAG order conflicting with the cluster order. My initial solution for the Hamilton VSCode extension was to redirect edges from/to nodes inside a cluster to the cluster. This also allows for "bundling" (tried to draw this idea).

image

Then, the user can view the granular edges by clicking on the node of interest and "unbundling"

zilto avatar Jul 18 '24 22:07 zilto