Skip to content

Commit 9153443

Browse files
fix: ignore empty hyperedges during connectionset generation
1 parent 39ad303 commit 9153443

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/systems/connectiongraph.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ function connectionsets(graph::ConnectionGraph)
455455
disjoint_sets = IntDisjointSets(length(invmap))
456456
for edge_i in 𝑠vertices(bigraph)
457457
hyperedge = 𝑠neighbors(bigraph, edge_i)
458+
isempty(hyperedge) && continue
458459
root, rest = Iterators.peel(hyperedge)
459460
for vert in rest
460461
union!(disjoint_sets, root, vert)

0 commit comments

Comments
 (0)