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

'DiGraph' object has no attribute 'number_of_selfloops' #16

Open
browshanravan opened this issue Jul 5, 2020 · 0 comments
Open

'DiGraph' object has no attribute 'number_of_selfloops' #16

browshanravan opened this issue Jul 5, 2020 · 0 comments

Comments

@browshanravan
Copy link

browshanravan commented Jul 5, 2020

I am trying to run the below code (in Jupyter-notebook) using networkx==2.4 and nxpd==0.2.0

import networkx as nx
import nxpd
from nxpd import draw
from nxpd import nxpdParams
nxpdParams["show"] = "ipynb"

G = nx.DiGraph()
G.add_node("Hello World")
draw(G)

However I get the error

'DiGraph' object has no attribute 'number_of_selfloops'

I am aware this function has been depreciated in networkx==2.4 but are there any plans for a fix to nxpd or any quick fixes I could use in the meantime?

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

1 participant