Skip to content

Commit 6161cb3

Browse files
author
Jack Dunham
committed
Network is now passed to forest_cover_edge_sequence directly.
1 parent b83ee36 commit 6161cb3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/beliefpropagation/beliefpropagationproblem.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function default_algorithm(
99
bpc::BeliefPropagationCache;
1010
verbose = false,
1111
tol = nothing,
12-
edge_sequence = forest_cover_edge_sequence(underlying_graph(bpc)),
12+
edge_sequence = forest_cover_edge_sequence(network(bpc)),
1313
message_update_alg = default_algorithm(Algorithm"contract"),
1414
maxiter = is_tree(bpc) ? 1 : nothing,
1515
)
@@ -44,7 +44,8 @@ end
4444
function region_plan(
4545
prob::BeliefPropagationProblem; root_vertex = default_root_vertex, sweep_kwargs...
4646
)
47-
edges = forest_cover_edge_sequence(underlying_graph(prob.cache); root_vertex)
47+
48+
edges = forest_cover_edge_sequence(network(prob.cache); root_vertex)
4849

4950
plan = map(edges) do e
5051
return [e] => (; sweep_kwargs...)

0 commit comments

Comments
 (0)