networkx / networkx-metis

NetworkX Addon to allow graph partitioning with METIS
Other
79 stars 21 forks source link

Tuple index out of range #71

Open soodoshll opened 4 years ago

soodoshll commented 4 years ago

I used nxmetis.partition(G, 8) to partition the PPI dataset, but an error occurred:

File "</home/ubuntu/profile/metis/lib/python2.7/site-packages/decorator.pyc:decorator-gen-678>", line 2, in partition File "build/bdist.linux-x86_64/egg/nxmetis/__init__.py", line 90, in _convert_exceptions IndexError: tuple index out of range

It depends on the number of partitions. I've tried 2 to 7 and they worked well. What might be the problem? Thank you.

soodoshll commented 4 years ago

btw, when I use networkx 1.9.1, running the example code in the readme file also causes a 'Tuple index out of range' error.