Included functions to compute roles of nodes in the mesoscale