making edges bi-directional