Unfortunately, there is no straightforward generalization of the method of  to the two edge marginal problem.
laplace expansion generalizes to second-order matrix minors, but it is not clear how to compute secondorder cofactors from the inverse Kirchoff matrix alone (c.f.