Replace removeRedundantEdges to edgeVisibility