nxviz doesn't work with networkx 2.4 due to a regression
See original GitHub issue- nxviz version: 0.6.1
- Python version: 3.7.4
- Operating System: Linux
Description
The following example doesn’t work with networkx 2.4 :
from random import choice
import matplotlib.pyplot as plt
import networkx as nx
from nxviz.plots import CircosPlot
G = nx.barbell_graph(m1=10, m2=3)
for n, d in G.nodes(data=True):
G.nodes[n]["class"] = choice(["a", "b", "c", "d", "e"])
c = CircosPlot(
G,
node_color="class"
)
c.draw()
It returns the following exception:
AttributeError: 'Graph' object has no attribute 'node'
How to solve
I installed networkx 2.3 and it works. As you can see Graph.node is depreacted : https://networkx.github.io/documentation/stable/release/release_2.4.html#deprecations
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Issues · ericmjl/nxviz - GitHub
nxviz doesn't work with networkx 2.4 due to a regression. #585 opened on Jan 28, 2020 by dridk · 6 · Specify edge_color...
Read more >nxviz Documentation
nxviz is a graph visualization package for NetworkX. With nxviz, you can create beautiful graph visualizations by a declarative API. Here's an ...
Read more >NetworkX 2.6 — NetworkX 2.8.8 documentation
Add approximation algorithms for Traveling Salesman Problem ... to the API change this may cause a performance regression for large graphs.
Read more >A hands-on tutorial on network and topological neuroscience
significant issue in imaging data [20-22]. Although TDA has only recently ... Nxviz. “nxviz is a graph visualisation package for. NetworkX.”.
Read more >nxviz from ericmjl - GithubHelp
Visualization Package for NetworkX from GithubHelp. ... nxviz doesn't work with networkx 2.4 due to a regression. nxviz version: 0.6.1; Python version: 3.7....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I confirm it works on master branch and pass all the test.
Would you be kind enough to try out the latest conda-forge or PyPI release?