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
If you are transferring variables and factors over a wire you need to serialize
4
+
and deserialize variables and factors.
5
+
6
+
## Packing and Unpacking
7
+
8
+
Packing is done with the exposed functions `packVariable()::Dict{String, Any}` and
9
+
`packFactor()::Dict{String, Any}`. You can then serialize this into a string or JSON
10
+
as you would normally.
11
+
12
+
> Note: When you deserialize a factor and want to use it for solving, you must call IncrementalInference.rebuildFactorMetadata!(dfgLoadInto, factor) to reinflate it completely. Please review [FileDFG service](src/FileDFG/services/FileDFG.jl) for an example.
Copy file name to clipboardExpand all lines: src/CloudGraphsDFG/services/CloudGraphsDFG.jl
+29-16Lines changed: 29 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -718,25 +718,11 @@ Optionally provide a distance to specify the number of edges should be followed.
718
718
Optionally provide an existing subgraph addToDFG, the extracted nodes will be copied into this graph. By default a new subgraph will be created.
719
719
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.
# Now ask for all relationships for this session graph
799
+
loadtx =transaction(dfg.neo4jInstance.connection)
800
+
query ="START n=node(*) MATCH (n:VARIABLE:$(dfg.userId):$(dfg.robotId):$(dfg.sessionId))-[r:FACTORGRAPH]-(m:FACTOR:$(dfg.userId):$(dfg.robotId):$(dfg.sessionId)) RETURN n.label as variable, m.label as factor;"
0 commit comments