call fn on vertex discovery (not on vertex finishing)