dreach function

Compute D-SEP(x,y,G)