How do I go about populating a graph for 6 degrees of separation? I am given a list of Actors and Movies. And I am supposed to make a graph from this list. I was thinking about making an nxn matrix to make the graph however a hint was to use a map/set. I am not sure how to go about reading the list and find the edges between each actors. Thanks. I don't have any code I am still trying to brain storm and figure this out.
Aucun commentaire:
Enregistrer un commentaire