Added script that returns a community assignment matrix labeled with an attribute