updating edge filter for total number of edges