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

Automatically increase edge thickness based on normalized edge weights from a property #143

Open prrao87 opened 4 months ago

prrao87 commented 4 months ago

Consider that we have pre-computed quantities that we assign as edge properties (type: float). It's a common use case to want to visualize the graph with edge thickness normalized by weights. Below is an example visualization made in PyVis (per this video).

image

In terms of UI design, I'm not 100% certain what's the best way to make the edge thickness by weight available to the user, but an idea would be to normalize the min/max edge weights in the entire graph beforehand and then assign the edge thickness via a single checkbox like "Set edge thickness by property" (or something like this). @mewim you might have better ideas on this.

mewim commented 4 months ago

I think the way you described makes sense. We can have an option to set the edge size based on property on the UI. Unfortunately the current edge settings do not work quite well (#119). I'll look into it again and start working on this after fixing #119.