Closed semihsalihoglu-uw closed 2 months ago
@MSebanc will tweak the parameters defined at https://github.com/kuzudb/explorer/blob/48fa9f0cd0cb7dc1e0ad4b8d255cafabcf0f8c1a/src/components/ShellView/ResultGraph.vue#L368-L373
to see if there is a way to make the default layout look better.
I have this query based on the repo here: https://github.com/kuzudb/cypher-workshop
The result graph viz that I get looks like this, where there is an undirected edge between 118.. and 082... Then there is a bi-directional edge between 082.. and 054... In fact there is an edge from 118.. to 054.. and from 054.. to 082..
If you move one of the nodes a little bit with your mouse, you get the right view:
Not sure what to do but seems like something the force layout should handle easily. It seems to happen because we're drawing all nodes in a straight line and we swap the positions of 054.. and 082..