Skip to content

Commit

Permalink
another ls2 dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
dehann committed Aug 16, 2023
1 parent 6b8ffb2 commit 872b50d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/AbstractDFG.jl
Original file line number Diff line number Diff line change
Expand Up @@ -656,13 +656,14 @@ end

"""
$(SIGNATURES)
Helper to return neighbors at distance 2 around a given node label.
Helper to return neighbors at distance 2 around a given node.
"""
function ls2(dfg::AbstractDFG, label::Symbol)
l2 = getNeighborhood(dfg, label, 2)
l1 = getNeighborhood(dfg, label, 1)
return setdiff(l2, l1)
end
ls2(dfg::AbstractDFG, v::AbstractDFGVariable) = ls(dfg, getLabel(v))

Check warning on line 666 in src/services/AbstractDFG.jl

View check run for this annotation

Codecov / codecov/patch

src/services/AbstractDFG.jl#L666

Added line #L666 was not covered by tests

"""
$SIGNATURES
Expand Down

0 comments on commit 872b50d

Please sign in to comment.