Fixed the .isVisible() function of edges. Fixed show/hide bug