Skip to content

Commit 658397d

Browse files
authored
Update ece_partitioner.py (#123)
1 parent 02adac3 commit 658397d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphgen/models/partitioner/ece_partitioner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _add_unit(u):
142142
return Community(
143143
id=seed_unit[1],
144144
nodes=list(community_nodes.keys()),
145-
edges=[(u, v) for (u, v), _ in community_edges.items()],
145+
edges=[tuple(edge) for edge in community_edges if isinstance(edge, frozenset) and len(edge)==2],
146146
)
147147

148148
for unit in tqdm(all_units, desc="ECE partition"):

0 commit comments

Comments
 (0)