networkx-metis icon indicating copy to clipboard operation
networkx-metis copied to clipboard

Tuple index out of range

Open soodoshll opened this issue 5 years ago • 1 comments

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

soodoshll avatar Feb 15 '20 12:02 soodoshll

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.

soodoshll avatar Feb 15 '20 12:02 soodoshll