-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feature/integrate pymetis #394
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please apply these minor changes to the code :)
(_, parts) = nxmetis.partition(G, int(n_feeder), | ||
node_weight='load', edge_weight='length', | ||
options=nxmetis.MetisOptions(contig=True)) | ||
_, parts = pymetis_parts.partition_network(G, int(n_feeder), node_weight='load', edge_weight='length') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"pymetis_parts." has to be removed
@@ -13,7 +13,8 @@ | |||
__author__ = "nesnoj, gplssm" | |||
|
|||
import networkx as nx | |||
import nxmetis | |||
import pymetis | |||
|
|||
# G. Karypis, V. Kumar: A fast and high quality multilevel scheme for partitioning irregular graphs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shift this to "partition_network" function
"""Partition a network graph into multiple parts using the Metis graph partitioning algorithm. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace with:
Partition a network graph into multiple parts using the METIS graph partitioning software with
python wrapper PyMetis (k-way graph partitioning is applied, see
G. Karypis, V. Kumar: A fast and high quality multilevel scheme for partitioning irregular graphs
https://www.cs.utexas.edu/~pingali/CS395T/2009fa/papers/metis.pdf)
great job! |
No description provided.