Skip to content

Commit 323f867

Browse files
committed
fix warning for dispatch
1 parent 44072f6 commit 323f867

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CloudGraphsDFG/services/CloudGraphsDFG.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ Optionally provide a distance to specify the number of edges should be followed.
704704
Optionally provide an existing subgraph addToDFG, the extracted nodes will be copied into this graph. By default a new subgraph will be created.
705705
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.
706706
"""
707-
function getSubgraphAroundNode(dfg::CloudGraphsDFG, node::T, distance::Int64=1, includeOrphanFactors::Bool=false, addToDFG::Union{Nothing, CloudGraphsDFG}=nothing)::CloudGraphsDFG where T <: DFGNode
707+
function getSubgraphAroundNode(dfg::CloudGraphsDFG, node::DFGNode, distance::Int64=1, includeOrphanFactors::Bool=false, addToDFG::Union{Nothing, CloudGraphsDFG}=nothing)::CloudGraphsDFG
708708
distance < 1 && error("getSubgraphAroundNode() only works for distance > 0")
709709

710710
# Making a copy session if not specified
@@ -720,7 +720,7 @@ function getSubgraphAroundNode(dfg::CloudGraphsDFG, node::T, distance::Int64=1,
720720
return addToDFG
721721
end
722722

723-
function getSubgraphAroundNode(dfg::CloudGraphsDFG{<:AbstractParams}, node::DFGNode, distance::Int64=1, includeOrphanFactors::Bool=false, addToDFG::AbstractDFG=LightGraphsDFG{AbstractParams}())::AbstractDFG
723+
function getSubgraphAroundNode(dfg::CloudGraphsDFG{<:AbstractParams}, node::DFGNode, distance::Int64, includeOrphanFactors::Bool, addToDFG::LightGraphsDFG{AbstractParams})::AbstractDFG
724724
distance < 1 && error("getSubgraphAroundNode() only works for distance > 0")
725725

726726

0 commit comments

Comments
 (0)