Function raceSync

Synchronous graph traversal, returning or throwing when the first visit is completed.