Thermodynamics of time evolving networks