KarypisLab / METIS

METIS - Serial Graph Partitioning and Fill-reducing Matrix Ordering
Other
665 stars 134 forks source link

Partitioning in 2 when nparts is only 2 #68

Open dj-park opened 1 year ago

dj-park commented 1 year ago
2 1 011
1 2 1 
2 1 1 

Graph file looks like above. There are only two nodes, one with weight of 1 and another with weight of 2. If I do gpmetis -ptype=rb test_graphfile 2 the result is

1
1

I thought it's intuitive to return 0,1 when there are only two nodes and I am trying to partition them into two. Is this expected?