@@ -190,7 +190,7 @@ Add a DFGFactor to a DFG.
190
190
"""
191
191
function addFactor! (dfg:: CloudGraphsDFG , variables:: Vector{DFGVariable} , factor:: DFGFactor ):: Bool
192
192
if exists (dfg, factor)
193
- error (" Factor '$(variable . label) ' already exists in the factor graph" )
193
+ error (" Factor '$(factor . label) ' already exists in the factor graph" )
194
194
end
195
195
196
196
# Update the variable ordering
@@ -653,10 +653,10 @@ function getNeighbors(dfg::CloudGraphsDFG, node::T; ready::Union{Nothing, Int}=n
653
653
query = " (n:$(dfg. userId) :$(dfg. robotId) :$(dfg. sessionId) :$(node. label) )--(node) where node:VARIABLE or node:FACTOR "
654
654
if ready != nothing || backendset != nothing
655
655
if ready != nothing
656
- query = query + " and node.ready = $(ready) "
656
+ query = query * " and node.ready = $(ready) "
657
657
end
658
658
if backendset != nothing
659
- query = query + " and node.backendset = $(backendset) "
659
+ query = query * " and node.backendset = $(backendset) "
660
660
end
661
661
end
662
662
neighbors = _getLabelsFromCyphonQuery (dfg. neo4jInstance, query)
@@ -675,10 +675,10 @@ function getNeighbors(dfg::CloudGraphsDFG, label::Symbol; ready::Union{Nothing,
675
675
query = " (n:$(dfg. userId) :$(dfg. robotId) :$(dfg. sessionId) :$(label) )--(node) where node:VARIABLE or node:FACTOR "
676
676
if ready != nothing || backendset != nothing
677
677
if ready != nothing
678
- query = query + " and node.ready = $(ready) "
678
+ query = query * " and node.ready = $(ready) "
679
679
end
680
680
if backendset != nothing
681
- query = query + " and node.backendset = $(backendset) "
681
+ query = query * " and node.backendset = $(backendset) "
682
682
end
683
683
end
684
684
neighbors = _getLabelsFromCyphonQuery (dfg. neo4jInstance, query)
0 commit comments