I was looking for a way to represent a bipartite graph (G) with two sets A and B which should be different from the adjacency matrix or list. It should also manage the edges