Comments (3)
Hi @gintepe, thanks for the notice, it seems that NetworkX just removed G.node in their recent release of 2.4, I will fix it in the next version very soon.
Meanwhile, can you suggest which function is incompatible with 1.x so I can fix it? Thanks!
from graphriccicurvature.
There is a fucntion call in compute_ricci_flow which has the wrong argument order for networkX 1.x - line 421 in OllivierRicci.py
According to a migration guide, "The order of arguments to set_edge_attributes and set_node_attributes has changed. The position of name and values has been swapped, and name now defaults to None. The previous call signature of (graph, name, value) has been changed to (graph, value, name=None)."
Older networkX tries to hash the dict w as the name and thus crashes.
from graphriccicurvature.
Solved in 01772b6.
Now it's compatable with NetworkX version > 2.0. For NetworkX 1.X, since G.nodes
is not supported, I guess you need to manually change it to G.node
for now.
from graphriccicurvature.
Related Issues (20)
- RuntimeError and NameError HOT 2
- IndexError: list index out of range HOT 4
- Forman-Ricci curvature computation breaks is graph has more than 1 connected component HOT 1
- I can't install this package(https://github.com/saibalmars/GraphRicciCurvature.git) HOT 3
- NetworkKit attribute issue causes ORC to fail HOT 2
- Clustering stochastic block model graphs HOT 2
- Warning: numerical errors at iteration 0 HOT 1
- RuntimeError HOT 2
- Indexing error when calling compute_ricci_curvature HOT 2
- Ollivier Ricci not working on Windows 10
- IndexError: invalid index to scalar variable HOT 2
- Parameters in the example figure HOT 1
- AttributeError: module 'community' has no attribute 'modularity' HOT 2
- Balanced forman ricci curvature HOT 1
- Kernel dies on my MacBook and multiprocess not run on Windows 10 HOT 5
- TypeError: 'AtlasView' object does not support item assignment HOT 3
- Visualization of the communities in GraphRicciCurvature Tutorial HOT 1
- Error in Discrete Ricci Curvature tutorial HOT 1
- ricciCurvature_singleEdge() TypeError: 'int' object is not subscriptable HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphriccicurvature.