Skip to content

Commit a228961

Browse files
committed
bug fix, remove DFG.
1 parent c5c7bd9 commit a228961

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/needsahome.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function buildSubgraphFromLabels!_SPECIAL(dfg::G,
8686
addfac = Symbol[]
8787
for sym in syms # frontals
8888
if solvable <= getSolvable(dfg, sym)
89-
DFG.addVariable!(subfg, deepcopy(DFG.getVariable(dfg, sym)))
89+
addVariable!(subfg, deepcopy(getVariable(dfg, sym)))
9090
append!(addfac, getNeighbors(dfg, sym, solvable=solvable))
9191
end
9292
end
@@ -96,19 +96,19 @@ function buildSubgraphFromLabels!_SPECIAL(dfg::G,
9696

9797
allvars = ls(subfg)
9898
for sym in usefac
99-
fac = DFG.getFactor(dfg, sym)
99+
fac = getFactor(dfg, sym)
100100
vos = fac._variableOrderSymbols
101101
#TODO don't add duplicates to start with
102102
if !exists(subfg,fac) && (vos allvars) && (solvable <= getSolvable(dfg, sym))
103-
DFG.addFactor!(subfg, fac._variableOrderSymbols, deepcopy(fac))
103+
addFactor!(subfg, fac._variableOrderSymbols, deepcopy(fac))
104104
end
105105
end
106106

107107
# remove orphans
108-
for fct in DFG.getFactors(subfg)
108+
for fct in getFactors(subfg)
109109
# delete any neighboring factors first
110110
if length(getNeighbors(subfg, fct)) != length(fct._variableOrderSymbols)
111-
DFG.deleteFactor!(subfg, fc)
111+
deleteFactor!(subfg, fc)
112112
@error "deleteFactor! this should not happen"
113113
end
114114
end

0 commit comments

Comments
 (0)