$mod only if a certain condition is met in the target graph
