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
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Please see the [documentation](http://juliarobotics.github.io/DistributedFactorG
16
16
17
17
# Installation
18
18
DistributedFactorGraphs can be installed from Julia packages using:
19
-
```
19
+
```julia
20
20
add DistributedFactorGraphs
21
21
```
22
22
@@ -27,23 +27,23 @@ DistributedFactorGraphs (DFG) currently supports two implementations:
27
27
28
28
The in-memory implementation is the default. The Neo4j driver can be enabled by importing Neo4j before DFG:
29
29
30
-
```
30
+
```julia
31
31
# To enable the Neo4j driver, import Neo4j.jl first
32
32
using Neo4j
33
33
using DistributedFactorGraphs
34
34
```
35
35
36
36
Both drivers support the same functions, so choose which you want to use when creating your initial DFG. For example:
37
37
38
-
```
38
+
```julia
39
39
# In-memory DFG
40
40
dfg =GraphsDFG{NoSolverParams}()
41
41
addVariable!(dfg, DFGVariable(:a))
42
42
addVariable!(dfg, DFGVariable(:b))
43
43
addFactor!(dfg, [v1, v2], DFGFactor{Int, :Symbol}(:f1)) # Rather use a RoME-type factor here (e.g. Pose2Pose2) rather than an Int, this is just for demonstrative purposes.
0 commit comments