Junction tree  - message passing