A factor graph is an -bipartite graph where is a set of variables and is a set of factors. A factor is a non-negative function, usually between 0 and 1, mapping from a subset of variables . This graph represents the factorisation
where is an assignment to all values of and is an assignment to all values of .