Skip to content

Commit dab7779

Browse files
AffieCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a435490 commit dab7779

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/GraphsDFG/GraphsDFG.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function DFG.rebuildFactorCache!(
8383
neighbors = [],
8484
)
8585
@warn(
86-
"FactorCache not build, rebuildFactorCache! is not implemented for $(typeof(dfg)). `rebuildFactorCache!` is available in IncrementalInference.",
86+
"FactorCache not built, rebuildFactorCache! is not implemented for $(typeof(dfg)). `rebuildFactorCache!` is available in IncrementalInference.",
8787
maxlog = 1
8888
)
8989
return nothing

src/GraphsDFG/services/GraphsDFG.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function mergeFactor!(dfg::GraphsDFG, factor::AbstractGraphFactor)
106106
),
107107
)
108108
else
109-
dfg.g.factors[factor.label] = factor
109+
dfg.g.factors[label] = factor
110110
end
111111

112112
return 1
@@ -268,7 +268,7 @@ function listNeighborhood(
268268
if !isnothing(solvable)
269269
Base.depwarn(
270270
"solvable kwarg is deprecated, use kwarg `solvableFilter = (>=solvable)` instead", #v0.29
271-
:listNeighbors,
271+
:listNeighborhood,
272272
)
273273
!isnothing(solvableFilter) &&
274274
error("Cannot use both solvable and solvableFilter kwargs.")

src/services/AbstractDFG.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ Implement `listNeighbors(dfg::AbstractDFG, label::Symbol; solvableFilter, tagsFi
346346
function listNeighbors end
347347

348348
function listNeighbors(dfg::AbstractDFG, node::AbstractGraphNode; kwargs...)
349-
return listNeighbors(dfg, node.label; kwargs...)
349+
return listNeighbors(dfg, getLabel(node); kwargs...)
350350
end
351351
##------------------------------------------------------------------------------
352352
## copy and duplication
@@ -587,7 +587,7 @@ Build a list of all unique neighbors inside 'distance'. Neighbors can be filtere
587587
Filters are applied to final neighborhood result.
588588
589589
Notes
590-
- Returns `Vector{Symbol}`
590+
- Returns a tuple `(variableLabels, factorLabels)`, where each element is a `Vector{Symbol}`.
591591
592592
Related:
593593
- [`copyGraph!`](@ref)
@@ -663,7 +663,7 @@ function buildSubgraph(
663663
if !isnothing(solvable)
664664
Base.depwarn(
665665
"solvable kwarg is deprecated, use kwarg `solvableFilter = (>=solvable)` instead", #v0.29
666-
:listNeighbors,
666+
:buildSubgraph,
667667
)
668668
!isnothing(solvableFilter) &&
669669
error("Cannot use both solvable and solvableFilter kwargs.")

0 commit comments

Comments
 (0)