Open ChenNie99 opened 2 years ago
Indeed, there's no current support for that:
PRs welcome.
I checked the newest code, maybe you have added the function & params into it ? but The usage method of node constrain(vweights) is not exist?
Yep, I think I merged a PR that did that.
yes,Here's another question: does this code "idx_t ncon = 1; " means "len(vweights)==len(xadj)"?
so if I want to give every node two or more weights, what should I do with the input list in python?
That feature isn't currently exposed, but I would welcome a PR that does.
The PyMetis provides a 'part_graph' like this:
And I notice the original METIS in C provides the k-way partition function like this:
According to the manual, the parameter 'tpwgts' specifies the weights for each partition, but seems missing in current API.