Generates social networks using either of two approaches: using either pairwise distances or territorial area intersections.