chaged import on weighted_modularity, cleaned up nodal_roles