Characterization of diseases in temporal comorbidity networks