Inference for Probabilistic Dependency Graphs