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.

python-igraph pip installable, also on Windows

See original GitHub issue

You might be interested to know that python-igraph is pip installable since version 0.8. Similarly, leidenalg can also be installed using pip since version 0.8. This includes all major platforms (including Windows) for recent Python versions. You might be able to move some of the optional requirements to the normal requirements.

Additionally, you may be interested to know that we added conversion methods between igraph and networkx and graph-tool. These are available from version 0.8.3 onwards. This should enable you to remove (or simplify) some of the conversions you are making in utils.py.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Yquetzalcommented, Apr 13, 2021

OK, I checked it and yes the _nx_name attribute retains the original type, so it solves the problem. The only thing we need to change is to check if the _nx_name attribute is present instead of the name attribute.

2reactions
vtraagcommented, Apr 13, 2021

Good to know about that @Yquetzal! I think in python-igraph, the from_networkx and to_networkx functions should retain the original Python types that are used. networkx does not have any explicit node ordering, while igraph explicitly does and uses integer indices to refer to nodes (although names are also supported). Perhaps some of the problems stem from there.

In any case, if there is something going wrong with the from_networkx or to_networkx functionality, we would be happy to learn about it and correct it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing igraph
pip is smart enough to download the sources from Github, initialize the submodule for the igraph C core, compile it, and then compile...
Read more >
How to install iGraph python package on Windows?
Then install the python-igraph-0.7.1 package, using either pip or apt-get as mentioned in comments below: sudo pip install python-igraph.
Read more >
Did anybody succeed in running igraph on windows 10 with ...
FYI: there was a new release of python-igraph (version 0.8.0), which includes binaries for Windows. Hence, you should be able to install simply ......
Read more >
Installing igraph — python-igraph v0.6 documentation
If you want to create publication-quality plots in igraph on Windows, you must also install Cairo and its Python bindings. The Cairo project...
Read more >
python-igraph - PyPI
python -igraph 0.10.2. pip install python-igraph ... Python interface to the igraph high performance graph library, primarily aimed at complex network ...
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