question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dridkcommented, Jan 29, 2020

I confirm it works on master branch and pass all the test.

0reactions
ericmjlcommented, Jan 29, 2020

Would you be kind enough to try out the latest conda-forge or PyPI release?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found