Skip to content

Commit db0c0db

Browse files
committed
adding solvable for tree work
1 parent d5a5ced commit db0c0db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/AbstractDFG.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,9 +493,9 @@ end
493493
Get an adjacency matrix for the DFG, returned as a tuple: adjmat::SparseMatrixCSC{Int}, var_labels::Vector{Symbol) fac_labels::Vector{Symbol).
494494
Rows are the factors, columns are the variables, with the corresponding labels in fac_labels,var_labels.
495495
"""
496-
function getAdjacencyMatrixSparse(dfg::G)::Tuple{LightGraphs.SparseMatrixCSC, Vector{Symbol}, Vector{Symbol}} where G <: AbstractDFG
497-
varLabels = map(v->v.label, getVariables(dfg))
498-
factLabels = map(f->f.label, getFactors(dfg))
496+
function getAdjacencyMatrixSparse(dfg::G; solvable::Int=1)::Tuple{LightGraphs.SparseMatrixCSC, Vector{Symbol}, Vector{Symbol}} where G <: AbstractDFG
497+
varLabels = map(v->v.label, getVariables(dfg, solvable=solvable))
498+
factLabels = map(f->f.label, getFactors(dfg, solvable=solvable))
499499

500500
vDict = Dict(varLabels .=> [1:length(varLabels)...])
501501

0 commit comments

Comments
 (0)