A Generalized Framework for Representing Complex Networks