Skip to content

Commit

Permalink
Merge pull request #40 from nasa/metis
Browse files Browse the repository at this point in the history
Metis
  • Loading branch information
pjuangph authored Jun 18, 2024
2 parents 6ecc26f + c058e29 commit 17ab48e
Show file tree
Hide file tree
Showing 5 changed files with 9,242 additions and 175 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#%% Import Scripts
import sys
sys.path.insert(0,'../../')
# sys.path.insert(1,'/mnt/c/GitHub/metis-python')
sys.path.insert(0,'~/miniconda3/envs/dev/lib/python3.10/site-packages/')
from plot3d.graph import block_connectivity_to_graph
import numpy as np
import networkx as nx
Expand All @@ -20,7 +20,7 @@ def view_pydot(pdot):

#%% Split the Graph
import metis
G.graph['node_weight_attr'] = ['weights']
G.graph['node_weight_attr'] = ['weight']
nparts = 3
(edgecuts, parts) = metis.part_graph(G, nparts,tpwgts=[0.3,0.3,0.4])
nodes_per_part = list()
Expand Down
Loading

0 comments on commit 17ab48e

Please sign in to comment.