Unveiling Urban Dynamics: Connections and Segregation in Communities