From a9b729f3088755d0447166a2450c8c27e0403eec Mon Sep 17 00:00:00 2001 From: Paht J Date: Mon, 17 Jun 2024 15:50:19 -0400 Subject: [PATCH] Update graph.py --- python/plot3d/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/plot3d/graph.py b/python/plot3d/graph.py index 6e6a20d..6c42b45 100644 --- a/python/plot3d/graph.py +++ b/python/plot3d/graph.py @@ -174,7 +174,7 @@ def block_connectivity_to_graph(connectivities:List[Dict[str,int]],block_sizes:L for i in range(len(block_sizes)): - G.add_node(i, weight=block_sizes[i]) + G.add_node(i, weight=block_sizes[i][0]*block_sizes[i][1]*block_sizes[i][2]) # Adds the connectivity information G.add_edges_from(block_to_block)