Update GraphNavigator.php

extract resolve type to method, update docblocks
typo