@@ -778,7 +778,7 @@ function buildTreeFromOrdering!(
778778 # copy required for both remote and local graphs
779779 DFG. deepcopyGraph! (fge, dfg)
780780
781- println ( " Building Bayes net..." )
781+ @info " Building Bayes net..."
782782 buildBayesNet! (fge, elimOrder; solvable = solvable)
783783
784784 tree = BayesTree ()
@@ -793,7 +793,7 @@ function buildTreeFromOrdering!(
793793 close (fid)
794794 end
795795
796- println ( " Find potential functions for each clique" )
796+ @info " Find potential functions for each clique"
797797 for cliqIds in getCliqueIds (tree)
798798 # start at the root, of which there could be multiple disconnected trees
799799 if isRoot (tree, cliqIds)
@@ -999,7 +999,7 @@ function getCliqFactorsFromFrontals(
999999 for fctid in ls (fgl, frsym)
10001000 fct = getFactor (fgl, fctid)
10011001 if ! unused || ! fct. state. potentialused
1002- loutn = ls (fgl, fctid; solvable = solvable)
1002+ loutn = listNeighbors (fgl, fctid; solvableFilter = >= ( solvable) )
10031003 # deal with unary factors
10041004 if length (loutn) == 1
10051005 union! (usefcts, Symbol[Symbol (fct. label);])
@@ -1194,9 +1194,9 @@ function getCliqVarsWithFrontalNeighbors(
11941194 union! (syms, Symbol .(cond))
11951195
11961196 # TODO Can we trust factors are frontal connected?
1197- ffcs = union (map (x -> ls (fgl, x; solvable = solvable), frtl)... )
1197+ ffcs = union (map (x -> listNeighbors (fgl, x; solvableFilter = >= ( solvable) ), frtl)... )
11981198 # @show ffcs = getCliqueData(cliq).potentials
1199- neig = union (map (x -> ls (fgl, x; solvable = solvable), ffcs)... )
1199+ neig = union (map (x -> listNeighbors (fgl, x; solvableFilter = >= ( solvable) ), ffcs)... )
12001200 union! (syms, Symbol .(neig))
12011201 return syms
12021202end
0 commit comments