More details on factor graphs.