Skip to content

Commit

Permalink
Fixed example
Browse files Browse the repository at this point in the history
  • Loading branch information
pjuangph committed Jun 18, 2024
1 parent f53f286 commit 8e4d453
Show file tree
Hide file tree
Showing 2 changed files with 9,222 additions and 173 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 8e4d453

Please sign in to comment.