use al-mohy's method to compute expectations on edges