Skip to content

Commit

Permalink
Merge branch 'metis' of https://github.com/nasa/Plot3D_utilities into…
Browse files Browse the repository at this point in the history
… metis
  • Loading branch information
pjuangph committed Jun 18, 2024
2 parents 3cf8612 + 14eb1b7 commit 2aef8a1
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 2aef8a1

Please sign in to comment.