anyone used hmestis with pre-assigned option enabled?

Hi all,

I am trying to partition my graph using hmetis, for that i have used option array like this:
int options[] = {1, 10, 1, 1, 1, 0, 0, -1, 24};

in this case it's working fine, but if i use option[6]=1 (pre-assigned nodes), it gives segfault. The stack trace is like this
#0 0x08083ea9 in CreateCoarseHGraph__ ()
#1 0x0807fc6f in CompressFixedCells__ ()
#2 0x0807db3b in MultilevelPartition__ ()
#3 0x08077caf in HMETIS_PartRecursive ()
#4 0x08053c3d in MiddleLayerNetwork::Partition (this=0x80bd050) at MiddleLayerNetwork.cpp:338
for this input:

______vertex weights_______
0:14 1:39 2:0

______edge weights_______
0:1 1:1 2:6 3:16 4:16 5:2 6:2 7:2

______e_ptr array_______
0:0 1:1 2:2 3:3 4:4 5:6 6:8 7:10 8:12

______e_ind arary_______
0:1 1:1 2:2 3:0 4:0 5:1 6:1 7:2 8:1 9:2 10:1 11:2

what i observed that in case of default options(no pre-assignment), it shows right number of vertex and edges, but with pre-assignment option enabled, it shows number of vertex as actual + 2 and edges quite less in compared to actual numbers.

anyone plz can explain me, whats going wrong.

thanx in advance,
Rajesh Garg

RE: Pre-assign vertices

I am having similar issues.

I need to pre-assign vertices, but whenever I have option[6]=1 and any part[i] = -1 it returns a seg fault. How do I get it to work?

Many thanks,
Jason Li

RE: This is due to the way

This is due to the way hmetis implements the pre-assignment internally.