networkit

pip install networkit error

不打扰是莪最后的温柔 提交于 2020-01-06 02:31:09
问题 I'm using the pip install networkit provide by the networkit homepage, but I don't know what's going wrong here, the terminal keep showing this: Downloading/unpacking networkit Downloading networkit-3.4.1.tar.gz (582kB): 582kB downloaded Running setup.py (path:/private/var/folders/sy/lzckft690rn8xfm2f1svp8p00000gn/T/pip_build_runze/networkit/setup.py) egg_info for package networkit Traceback (most recent call last): File "<string>", line 17, in <module> File "/private/var/folders/sy

Usage of forEdges iterator in networkit (python)

不打扰是莪最后的温柔 提交于 2019-12-23 22:12:47
问题 I carefully read the docs, but it still is unclear to me how to use G.forEdges(), described as an "experimental edge iterator interface". Let's say that I want to decrease the density of my graph. I have a sorted list of weights, and I want to remove edges based on their weight until the graph splits into two connected components. Then I'll select the minimum number of links that keeps the graph connected. I would do something like this: cc = components.ConnectedComponents(G).run() while cc

Error while uploading Networkit python module with Jupyter notebook

倖福魔咒の 提交于 2019-12-11 09:49:48
问题 I installed the Networkit module with conda install -c vgauthier networkit . If I import it in a notebook ( import networkit as nk ) I get this error: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-2-a4c0096fb06c> in <module>() ----> 1 import networkit as nk //anaconda/envs/py36/lib/python3.6/site-packages/networkit/__init__.py in <module>() 41 # local imports 42 from . import stopwatch ---> 43 from .