A Spatial and Social Study of Communities and Networks