Spaces:
Running
Running
github-actions[bot]
commited on
Commit
·
65bfd6d
1
Parent(s):
8dd5b0a
Auto-sync from demo at Thu Dec 18 10:55:19 UTC 2025
Browse files
graphgen/models/partitioner/ece_partitioner.py
CHANGED
|
@@ -142,7 +142,7 @@ class ECEPartitioner(BFSPartitioner):
|
|
| 142 |
return Community(
|
| 143 |
id=seed_unit[1],
|
| 144 |
nodes=list(community_nodes.keys()),
|
| 145 |
-
edges=[(
|
| 146 |
)
|
| 147 |
|
| 148 |
for unit in tqdm(all_units, desc="ECE partition"):
|
|
|
|
| 142 |
return Community(
|
| 143 |
id=seed_unit[1],
|
| 144 |
nodes=list(community_nodes.keys()),
|
| 145 |
+
edges=[tuple(edge) for edge in community_edges if isinstance(edge, frozenset) and len(edge)==2],
|
| 146 |
)
|
| 147 |
|
| 148 |
for unit in tqdm(all_units, desc="ECE partition"):
|