Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edge labels #39

Closed
eannam opened this issue Jul 4, 2019 · 2 comments
Closed

edge labels #39

eannam opened this issue Jul 4, 2019 · 2 comments

Comments

@eannam
Copy link

eannam commented Jul 4, 2019

Hi, is it possible to display edge labels/attributes with pyvis? Thanks.

@boludo00
Copy link
Collaborator

boludo00 commented Jul 9, 2019

You can supply a call to add_edge with the title kwarg to display a tooltip over edges when you hover over them.

Example:

from pyvis.network import Network

g = Network()
g.add_node(0)
g.add_node(1)
g.add_edge(0, 1, title="this is an edge label")

@boludo00 boludo00 closed this as completed Jul 9, 2019
@jbaktir
Copy link

jbaktir commented Aug 5, 2020

It should should "label" not "title", like this:

from pyvis.network import Network

g = Network()
g.add_node(0)
g.add_node(1)
g.add_edge(0, 1, label="this is an edge label")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants