Fix edge/vertex setVisibility #441