Making the edge filter positive (only cycles containing defined edges are kept as result)