File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/CloudGraphsDFG/services Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -337,10 +337,11 @@ function isFullyConnected(dfg::CloudGraphsDFG)::Bool
337
337
factIds = listFactors (dfg)
338
338
length (varIds) + length (factIds) == 0 && return false
339
339
340
- # Total connected nodes - thank you Neo4j for 0..* awesomeness!!
340
+ # Total distinct connected nodes - thank you Neo4j for 0..* awesomeness!!
341
+ # TODO : Deprecated matching technique and it's technically an expensive call - optimize.
341
342
query = """
342
343
match (n:$(dfg. userId) :$(dfg. robotId) :$(dfg. sessionId) :$(varIds[1 ]) )-[FACTORGRAPH*]-(node:$(dfg. userId) :$(dfg. robotId) :$(dfg. sessionId) )
343
- WHERE (n:VARIABLE OR n:FACTOR OR node:VARIABLE OR node:FACTOR) and not (node:SESSION)
344
+ WHERE (n:VARIABLE OR n:FACTOR OR node:VARIABLE OR node:FACTOR) and not (node:SESSION or n:SESSION) and not (n:PPE) and not (node:PPE )
344
345
WITH collect(n)+collect(node) as nodelist
345
346
unwind nodelist as nodes
346
347
return count(distinct nodes)"""
You can’t perform that action at this time.
0 commit comments