yWorks / yfiles-jupyter-graphs-for-neo4j

The open-source adapter for working with neo4j graphs and cypher queries in jupyter notebooks leveraging the yFiles Graphs for Jupyter plugin.
https://www.yworks.com/jupyter
MIT License
32 stars 3 forks source link

Feature: Better defaults for label texts #2

Closed yGuy closed 5 months ago

yGuy commented 7 months ago

I think the simple logic that the neo4j browser is using is something that we should also apply to label texts, by default,

If there is a property called "Title"/"title"/"Name"/"name" use the value as label text when the user did not specify a custom binding. otherwise use the neo4j label as the label text.

Currently you always need to hover to find out what item you have and for many queries all the nodes will have the same text labels.

fskpf commented 6 months ago

We could also address this directly in the yfiles-jupyter-graphs widget.

Similar to the default node/relationship color mapping, we could provide another default label mapping for neo4j graph imports that uses common keywords for labels and falls back to the item type otherwise.