Hi everyone,
I managed to get the toolbar to show the node attributes, but am not getting any idea how to show the edge attribute on hovering an edge in the graph.
Here is a minimal example:
import networkx as nx
import hvplot.networkx as hvnx
g = nx.petersen_graph()
for n in g.nodes():
if n < 5:
g.nodes[n]["Country"] = "US"
else:
g.nodes[n]["Country"] = "DE"
for e in g.edges():
g.edges[e]["Relation"] = "Good"
spring = hvnx.draw(g, with_labels=True)
# in a notebook
spring
Currently, I do see the node attributes. How can we also render the edge attributes? I saw a bokeh example, but could not translate it to hvplot.
Thanks in advance,
Sam