Use proper method for invalid node
Merge branch 'master' of github.com:mrb/graaaph
Move valid node check to safe-visit