From Directed Graph to Partial Likelihood