You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionsetSolverParams(dfg::GraphsDFG, solverParams::P) where P <:AbstractParams
85
+
dfg.solverParams = solverParams
86
+
end
71
87
72
88
"""
73
89
$(SIGNATURES)
@@ -125,7 +141,7 @@ function addFactor!(dfg::GraphsDFG, variables::Vector{DFGVariable}, factor::DFGF
125
141
Graphs.add_edge!(dfg.g, edge)
126
142
end
127
143
# Track insertion
128
-
push!(dfg.addHistory, factor.label)
144
+
#push!(dfg.addHistory, factor.label)
129
145
130
146
returntrue
131
147
end
@@ -428,7 +444,7 @@ Optionally provide a distance to specify the number of edges should be followed.
428
444
Optionally provide an existing subgraph addToDFG, the extracted nodes will be copied into this graph. By default a new subgraph will be created.
429
445
Note: By default orphaned factors (where the subgraph does not contain all the related variables) are not returned. Set includeOrphanFactors to return the orphans irrespective of whether the subgraph contains all the variables.
430
446
"""
431
-
functiongetSubgraphAroundNode(dfg::GraphsDFG, node::T, distance::Int64=1, includeOrphanFactors::Bool=false, addToDFG::GraphsDFG=GraphsDFG())::GraphsDFGwhere T <:DFGNode
447
+
functiongetSubgraphAroundNode(dfg::GraphsDFG{P}, node::T, distance::Int64=1, includeOrphanFactors::Bool=false, addToDFG::GraphsDFG=GraphsDFG{P}())::GraphsDFGwhere{P <:AbstractParams, T <:DFGNode}
432
448
if!haskey(dfg.labelDict, node.label)
433
449
error("Variable/factor with label '$(node.label)' does not exist in the factor graph")
0 commit comments