Unraveling complex networks under the prism of dynamical processes: relations between structure and dynamics