Skip to content

Commit 5c1fac3

Browse files
committed
add isSolvable fnc
1 parent ea6ba28 commit 5c1fac3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/services/AbstractDFG.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,20 @@ function ls(dfg::G, label::Symbol)::Vector{Symbol} where G <: AbstractDFG
327327
return getNeighbors(dfg, label)
328328
end
329329

330+
"""
331+
$SIGNATURES
332+
333+
Variables or factors may or may not be 'solvable', depending on a user definition. Useful for ensuring atomic transactions.
334+
335+
DevNotes:
336+
- Will be renamed to `var.solvable` -- see DFG #201
337+
338+
Related
339+
340+
isSolveInProgress
341+
"""
342+
isSolvable(var::Union{DFGVariable, DFGFactor}) = var.ready
343+
330344
"""
331345
$(SIGNATURES)
332346
Gets an empty and unique CloudGraphsDFG derived from an existing DFG.

0 commit comments

Comments
 (0)