Skip to content

Commit 35db02e

Browse files
authored
Merge pull request #127 from JuliaRobotics/hotfix/cloudsparseadj
bugfix cloud sparse adj matrix
2 parents 9afd7a3 + 4c6c2cd commit 35db02e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CloudGraphsDFG/services/CloudGraphsDFG.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -789,11 +789,11 @@ end
789789

790790
function getAdjacencyMatrixSparse(dfg::CloudGraphsDFG)::Tuple{SparseMatrixCSC, Vector{Symbol}, Vector{Symbol}}
791791
varLabels = getVariableIds(dfg)
792-
factLabels = sort(getFactorIds(dfg))
793-
vDict = Dict(varLabels .=> [1:length(varLabels)...].+1)
794-
fDict = Dict(factLabels .=> [1:length(factLabels)...].+1)
792+
factLabels = getFactorIds(dfg)
793+
vDict = Dict(varLabels .=> [1:length(varLabels)...])
794+
fDict = Dict(factLabels .=> [1:length(factLabels)...])
795795

796-
adjMat = spzeros(Int, length(factLabels)+1, length(varLabels)+1)
796+
adjMat = spzeros(Int, length(factLabels), length(varLabels))
797797

798798
# Now ask for all relationships for this session graph
799799
loadtx = transaction(dfg.neo4jInstance.connection)

0 commit comments

Comments
 (0)