src/cte.cpp
void cte::backward(std::vector<int>& evidence) {
	for (vector<detail::edge*>::reverse_iterator ri = m_messages.rbegin();
			ri != m_messages.rend(); ++ri) {
		detail::edge* e = (*ri);
		e->messageBwd(evidence);

		if (m_debug) {
			std::cout << " <- backward msg from "
				<< e->second->id << " to " << e->first->id
				<< ": " << e->bwd << std::endl;
		}
	}
}
// Backward message propagation with evidence (from root to leaves)
Backward message propagation with evidence (from root to leaves)
Backward message propagation with evidence ( from root to leaves )
void cte::backward(std::vector<int>& evidence) {
	for (vector<detail::edge*>::reverse_iterator ri = m_messages.rbegin();
			ri != m_messages.rend(); ++ri) {
		detail::edge* e = (*ri);
		e->messageBwd(evidence);
		if (m_debug) {
			std::cout << " <- backward msg from "
				<< e->second->id << " to " << e->first->id
				<< ": " << e->bwd << std::endl;
		}
	}
}
void cte :: backward ( std :: vector < int > & evidence ) { for ( vector < detail :: edge * > :: reverse_iterator ri = m_messages . rbegin ( ) ; ri != m_messages . rend ( ) ; ++ ri ) { detail :: edge * e = ( * ri ) ; e -> messageBwd ( evidence ) ; if ( m_debug ) { std :: cout << " " << e -> second -> id << " " << e -> first -> id << " " << e -> bwd << std :: endl ; } } }
Backward message propagation with evidence (from root to leaves)
Backward message propagation with evidence ( from root to leaves )