The influence of network topology on synchronization