Skip to content

Commit d12ec3e

Browse files
committed
Also treat selected states as unassigned edges in matching graph
I think this is a more useful interpretation, since this way, DiCMOBiGraph{true}(graph, var_eq_matching) can be used to topsort equation dependencies.
1 parent fd279c0 commit d12ec3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bipartite_graph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ function Base.iterate(c::CMONeighbors{false}, (l, state...))
546546
# directed graph. Otherwise, if there is no matching for this destination
547547
# edge, also skip it, since it got delted in the contraction.
548548
vsrc = c.g.matching[r[1]]
549-
if vsrc === c.v || vsrc === unassigned
549+
if vsrc === c.v || !isa(vsrc, Int)
550550
state = (r[2],)
551551
continue
552552
end

0 commit comments

Comments
 (0)