[MFMC]: Correct code for considering the edge direction. Note that coordinate system is changed