Update GraphNavigator.php

extract resolve type to method, update docblocks
you should not break the indentation