Synchronization reveals correlation between oscillators on networks