move the process of checking "target or not" from graphstrategy to
Visitor