First principles and effective theory approaches to dynamics of complex networks