Skip to content

Commit 0bfd18d

Browse files
committed
Formatting
1 parent 8cfdb6b commit 0bfd18d

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/caches/beliefpropagationcache.jl

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,22 +94,16 @@ function environment(bpc::BeliefPropagationCache, verts::Vector; kwargs...)
9494
return vcat(messages, central_tensors)
9595
end
9696

97-
function region_scalar(
98-
bp_cache::BeliefPropagationCache,
99-
pv::PartitionVertex;
100-
)
97+
function region_scalar(bp_cache::BeliefPropagationCache, pv::PartitionVertex;)
10198
incoming_mts = incoming_messages(bp_cache, [pv])
10299
local_state = factors(bp_cache, pv)
103100
ts = vcat(incoming_mts, local_state)
104-
sequence = contraction_sequence(ts; alg = "optimal")
101+
sequence = contraction_sequence(ts; alg="optimal")
105102
return contract(ts; sequence)[]
106103
end
107104

108-
function region_scalar(
109-
bp_cache::BeliefPropagationCache,
110-
pe::PartitionEdge;
111-
)
105+
function region_scalar(bp_cache::BeliefPropagationCache, pe::PartitionEdge;)
112106
ts = vcat(message(bp_cache, pe), message(bp_cache, reverse(pe)))
113-
sequence = contraction_sequence(ts; alg = "optimal")
107+
sequence = contraction_sequence(ts; alg="optimal")
114108
return contract(ts; sequence)[]
115109
end

0 commit comments

Comments
 (0)