Skip to content

Commit 284da70

Browse files
authored
Merge pull request #1052 from JuliaRobotics/23Q4/enh/biadj_order
getBiadjacencyMatrix: var and factor order input
2 parents 86c7d4b + 3a477c0 commit 284da70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GraphsDFG/services/GraphsDFG.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,12 @@ end
373373
function getBiadjacencyMatrix(
374374
dfg::GraphsDFG;
375375
solvable::Int = 0,
376+
varLabels = listVariables(dfg; solvable = solvable),
377+
factLabels = listFactors(dfg; solvable = solvable),
376378
)::NamedTuple{
377379
(:B, :varLabels, :facLabels),
378380
Tuple{Graphs.SparseMatrixCSC, Vector{Symbol}, Vector{Symbol}},
379381
}
380-
varLabels = listVariables(dfg; solvable = solvable)
381-
factLabels = listFactors(dfg; solvable = solvable)
382382
varIndex = [dfg.g.labels[s] for s in varLabels]
383383
factIndex = [dfg.g.labels[s] for s in factLabels]
384384

0 commit comments

Comments
 (0)