fixed bug in removing edges in visibility graph