Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

How to add constraints when graphs partition? #78

Open
Tiatiaoooo opened this issue Oct 11, 2021 · 0 comments
Open

How to add constraints when graphs partition? #78

Tiatiaoooo opened this issue Oct 11, 2021 · 0 comments

Comments

@Tiatiaoooo
Copy link

Hi, I want use nxmetis.partition(G, nparts, node_weight='weight', node_size='size', edge_weight='weight', tpwgts=None, ubvec=None, options=None, recursive=False) to do graph patition, but I don't know how to add constraints, the constrains are like '1. the number of persons in every partition must smaller than B2, and bigger than B1', '2. the diameter of every partition must smaller than D2, and bigger than D1', can I set tpwgts to fulfill my needs?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant