Implement a SocialNetwork class (sometimes called a 'friend circle' or 'social graph') supporting the following operations, typically presented as a multi-part problem: Part 1 – Basic follow/unfollow with snapshot: - follow(A, B) / update(A, B, t): User A follows user B (at time t, or at the current moment). -…