Skip to content
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

Merged
merged 4 commits into from
Aug 16, 2023
Merged

Feature/integrate pymetis #394

merged 4 commits into from
Aug 16, 2023

Conversation

JuliusKiso
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@piaulous piaulous left a 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')
Copy link
Collaborator

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
Copy link
Collaborator

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

Comment on lines 45 to 46
"""Partition a network graph into multiple parts using the Metis graph partitioning algorithm.

Copy link
Collaborator

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)

@piaulous
Copy link
Collaborator

great job!

@piaulous piaulous merged commit 3b50f4f into dev Aug 16, 2023
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants