You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -653,12 +587,12 @@ Optionally provide a distance to specify the number of edges should be followed.
653
587
Optionally provide an existing subgraph addToDFG, the extracted nodes will be copied into this graph. By default a new subgraph will be created.
654
588
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.
"(n:$(dfg.userId):$(dfg.robotId):$(dfg.sessionId):$(node.label))-[FACTORGRAPH*0..$distance]-(node:$(dfg.userId):$(dfg.robotId):$(dfg.sessionId)) WHERE (n:VARIABLE OR n:FACTOR OR node:VARIABLE OR node:FACTOR) and not (node:SESSION)")
595
+
"(n:$(dfg.userId):$(dfg.robotId):$(dfg.sessionId):$(node.label))-[FACTORGRAPH*0..$distance]-(node:$(dfg.userId):$(dfg.robotId):$(dfg.sessionId)) WHERE (n:VARIABLE OR n:FACTOR OR node:VARIABLE OR node:FACTOR) and not (node:SESSION) and (node.solvable >= $solvable)")
Copy file name to clipboardExpand all lines: src/GraphsDFG/services/GraphsDFG.jl
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -327,7 +327,7 @@ Optionally provide a distance to specify the number of edges should be followed.
327
327
Optionally provide an existing subgraph addToDFG, the extracted nodes will be copied into this graph. By default a new subgraph will be created.
328
328
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.
329
329
"""
330
-
functiongetSubgraphAroundNode(dfg::GraphsDFG{P}, node::T, distance::Int64=1, includeOrphanFactors::Bool=false, addToDFG::GraphsDFG=GraphsDFG{P}())::GraphsDFGwhere {P <:AbstractParams, T <:DFGNode}
330
+
functiongetSubgraphAroundNode(dfg::GraphsDFG{P}, node::T, distance::Int64=1, includeOrphanFactors::Bool=false, addToDFG::GraphsDFG=GraphsDFG{P}(); solvable::Int=0)::GraphsDFGwhere {P <:AbstractParams, T <:DFGNode}
331
331
if!haskey(dfg.labelDict, node.label)
332
332
error("Variable/factor with label '$(node.label)' does not exist in the factor graph")
333
333
end
@@ -341,7 +341,7 @@ function getSubgraphAroundNode(dfg::GraphsDFG{P}, node::T, distance::Int64=1, in
341
341
for (key, node) in curList
342
342
neighbors =in_neighbors(node, dfg.g) #Don't use out_neighbors! It enforces directiveness even if we don't want it
Copy file name to clipboardExpand all lines: src/LightDFG/services/LightDFG.jl
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -384,13 +384,15 @@ Optionally provide a distance to specify the number of edges should be followed.
384
384
Optionally provide an existing subgraph addToDFG, the extracted nodes will be copied into this graph. By default a new subgraph will be created.
385
385
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.
386
386
"""
387
-
functiongetSubgraphAroundNode(dfg::LightDFG{P,V,F}, node::DFGNode, distance::Int64=1, includeOrphanFactors::Bool=false, addToDFG::LightDFG=LightDFG{P,V,F}())::LightDFGwhere {P <:AbstractParams, V <:AbstractDFGVariable, F <:AbstractDFGFactor}
387
+
functiongetSubgraphAroundNode(dfg::LightDFG{P,V,F}, node::DFGNode, distance::Int64=1, includeOrphanFactors::Bool=false, addToDFG::LightDFG=LightDFG{P,V,F}(); solvable::Int=0)::LightDFGwhere {P <:AbstractParams, V <:AbstractDFGVariable, F <:AbstractDFGFactor}
388
388
if!exists(dfg,node.label)
389
389
error("Variable/factor with label '$(node.label)' does not exist in the factor graph")
390
390
end
391
391
392
392
# Get a list of all unique neighbors inside 'distance'
0 commit comments