nxpd
nxpd copied to clipboard
'DiGraph' object has no attribute 'number_of_selfloops'
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?