We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bed869 commit 2f12c93Copy full SHA for 2f12c93
1 file changed
src/pyirk/visualization.py
@@ -11,6 +11,15 @@
11
import time
12
13
import networkx as nx
14
+
15
+# monkey-patch workaround because nxv currently is broken for new networkx releases
16
17
+if not hasattr(nx, "OrderedGraph"):
18
+ nx.OrderedGraph = nx.Graph
19
+ nx.OrderedDiGraph = nx.DiGraph
20
+ nx.OrderedMultiGraph = nx.MultiGraph
21
+ nx.OrderedMultiDiGraph = nx.MultiDiGraph
22
23
import nxv # for graphviz visualization of networkx graphs
24
25
# prevent deprecation warning because nxv is not as up-to-date as nx (of which it depends)
0 commit comments