In this code, the Employee class has both managers and subordinates attributes, both represented as sets. The add_manager function is used to establish bidirectional relationships between employees and their managers. This modification reflects an undirected graph where relationships are symmetric, and each employee can be considered a neighbor of another. The example usage demonstrates how to print all subordinates associated with a manager. #graph #datastructures #algorithm