networkx-metis
networkx-metis copied to clipboard
Tuple index out of range
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.
- python 2.7
- networkx 2.2
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.