kuzudb / explorer

Browser-based user interface for Kùzu graph database
https://hub.docker.com/r/kuzudb/explorer
MIT License
29 stars 5 forks source link

Enable dynamic force-directed layouts in schema view #173

Open prrao87 opened 1 month ago

prrao87 commented 1 month ago

When viewing a large schema with a lot of nodes/rels, the static schema view as we have currently is rather ugly - it doesn't respond to the user moving nodes around, and takes a lot of manual effort to show everything cleanly.

kuzudb_schema

It would be much nicer if the schema view also responded dynamically when the user moves nodes around, recalculating the layouts using a force-directed algorithm (same as the query editor tab).

hamzakammar commented 4 days ago

There's a couple issues that I've seen when trying to expirement with this. If we keep the layout type at comboForce, then the nodes movement is stiff, and they don't stay in their new positions. However, if we switch the layout type to force, the nodes move freely with force-directed layouts, but RDF graphs overlap with the rel and node graphs, which is not ideal.