yWorks / yfiles-jupyter-graphs

The home of the Jupyter notebook graph visualization widget powered by yFiles for HTML
https://www.yworks.com/products/yfiles-graphs-for-jupyter
Other
162 stars 15 forks source link

Document ways to customize default graph imports #42

Closed yGuy closed 7 months ago

yGuy commented 9 months ago

Describe the bug the widget allows for easily importing many different graph formats. However it is unclear from the documentation or example how they can be customized.

To Reproduce Steps to reproduce the behavior:

  1. Use any of the example on the internet that work with pandas dataframes or networkx graphs
  2. Import the graph using GraphWidget(graph = mygraph)
  3. Try to declare bindings for things like edge thickness, color, size, etc.
  4. You will run into all kinds of ugly Python errors because its unclear what "index" is referring to, nor what "node" or "edge" actually are

Expected behavior I would love to see the examples augmented to show how to easily do bindings e.g. to a pandas column, or to a property declared in a networkx graph. Without them, it's hard to make the best out of the powerful binding features.