toggle edges' visibility