Skip to content

Commit c309a86

Browse files
committed
Fix message type initialization failing when only factors are provided.
1 parent 5c124cd commit c309a86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/beliefpropagation/beliefpropagationcache.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function BeliefPropagationCache(callable::Base.Callable, network::AbstractGraph)
6767
end
6868

6969
function BeliefPropagationCache(graph::AbstractGraph, factors::Dictionary)
70-
MT = vertex_data_type(typeof(graph))
70+
MT = eltype(factors)
7171
return BeliefPropagationCache(MT, graph, factors)
7272
end
7373

0 commit comments

Comments
 (0)