Junction Tree Routing