I was recently given an assignment that requires the need to construct an undirected unweighted graph in order to later on use it in a BFS algorithm. For some background, the adjacency matrix stores vertexes in string form, and its edges in string form. As an example, there would be two movie actor vertexes that are connected through a movie they worked together. The relationship between the vertexes and movies will be later used to find the shortest path between two actors. I am still rather a novice when it comes to programming and c++, however I would appreciate any help as to how I would get started and progress through it.
Just as a preface, I am NOT asking for actual code. That would be against integrity guidelines at my school, and moreover, I am trying to learn the material rather than regurgitating algorithms into my IDE.
My main question is how do I create and store the strings representing the actors in the matrix and the strings representing the edges between the actors in the individual cells of the matrix.