Skip to content

Commit 6dce1d8

Browse files
authored
Merge pull request #1036 from JuliaRobotics/23Q3/enh/ls2v
another ls2 dispatch
2 parents 6b8ffb2 + 872b50d commit 6dce1d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/AbstractDFG.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,13 +656,14 @@ end
656656

657657
"""
658658
$(SIGNATURES)
659-
Helper to return neighbors at distance 2 around a given node label.
659+
Helper to return neighbors at distance 2 around a given node.
660660
"""
661661
function ls2(dfg::AbstractDFG, label::Symbol)
662662
l2 = getNeighborhood(dfg, label, 2)
663663
l1 = getNeighborhood(dfg, label, 1)
664664
return setdiff(l2, l1)
665665
end
666+
ls2(dfg::AbstractDFG, v::AbstractDFGVariable) = ls(dfg, getLabel(v))
666667

667668
"""
668669
$SIGNATURES

0 commit comments

Comments
 (0)