-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contiguous option doesn't seem to work. #60
Comments
@nhartland, as the person who contributed the functionality to expose the "contiguous" flag in #20, could you comment? |
It's a bit hard to tell but it looks from your figure like you have disconnected components in your graph? IIRC when given a disconnected graph METIS will silently ignore the |
Hi
Output
|
Can I ask you some questions?I would like to ask you about the segmentation of the road network. If possible, tell me,here is my email [email protected]。 I would be very grateful. |
The last time I checked* it was working fine for my application (partitions were contiguous when the flag was set, discontiguous when not). So at least the passing of the flag to METIS seemed to be working. Beyond that, what METIS does with the flag (and I am aware of at least the one case of it being silently ignored, see above) I can't offer support for. *That being said, I've changed job in the meantime so no longer have access to the code to double-check. |
Describe the bug
Passing the contiguous option in create_parts, either via the argument in the method or passing an
Options
object withcontig
set to True, doesn't seem to actually return contiguous partitions.To Reproduce
Run metis part with the contig option in one of these ways:
Expected behavior
The resulting partitions should be contiguous.
Environment (please complete the following information):
Additional context
Image of the resulting partitions from a street map graph (each color = different partition):
The text was updated successfully, but these errors were encountered: