You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Graph visualisation takes node labels from edge_index and doesn't allow replacing them with text names. This is limiting and easy to improve by adding a node_labels argument to torch_geometric.visualization.graph.visualize_graph().
Alternatives
This could also be solved by allowing string node indexes in edge_index, but that requires too much effort playing with Torch.Tensor types.
Additional context
This would be particularly useful for explain.Explanation.visualize_graph(), to help identify the nodes in the explanation graph.
I am happy to open a PR with these changes, if I am granted an appropriate permission.
The text was updated successfully, but these errors were encountered:
Addresses #8770
Note that these are used only with graphviz backend.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: rusty1s <matthias.fey@tu-dortmund.de>
🚀 The feature, motivation and pitch
Graph visualisation takes node labels from edge_index and doesn't allow replacing them with text names. This is limiting and easy to improve by adding a
node_labels
argument totorch_geometric.visualization.graph.visualize_graph()
.Alternatives
This could also be solved by allowing string node indexes in edge_index, but that requires too much effort playing with Torch.Tensor types.
Additional context
This would be particularly useful for explain.Explanation.visualize_graph(), to help identify the nodes in the explanation graph.
I am happy to open a PR with these changes, if I am granted an appropriate permission.
The text was updated successfully, but these errors were encountered: