A topological framework to explore longitudinal social networks