Giter Club home page Giter Club logo

Comments (3)

saibalmars avatar saibalmars commented on May 28, 2024

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.

gintepe avatar gintepe commented on May 28, 2024

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.

saibalmars avatar saibalmars commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.