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

Arrows are not displayed on the graph #256

Open
ossolnce opened this issue Oct 12, 2023 · 1 comment
Open

Arrows are not displayed on the graph #256

ossolnce opened this issue Oct 12, 2023 · 1 comment

Comments

@ossolnce
Copy link

ossolnce commented Oct 12, 2023

I use this code to display edge:
net.add_edge(src, dst, title = title, value = value, arrowStrikethrough=False)

But the arrows on the graph are not displayed.

pyvis 0.3.2

@DavidWalz
Copy link

DavidWalz commented Mar 8, 2024

Did you pass directed=True? https://stackoverflow.com/a/70198398/2882405

MWE (pyvis-0.3.2)

from pyvis.network import Network
import networkx as nx

G = nx.gnr_graph(10, 0.3)
nt = Network('500px', '500px', notebook=False, directed=True)
nt.from_nx(G)
nt.show('nx.html', notebook=False)

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

2 participants