Traverse MultiMap to Find Path from a Given Value to a Given Key
问题 Details: I have a multimap implementation that represents the adjacency list for the subset of a graph. I need to find a path through this subset of the graph, which is actually all the possible paths from a start node F to an end node G , acquired by running a breadth first search on the full graph. Implementation Ideas: The BFS quits once G is found, so you end up with G only in the values of the multimap. My idea is that if you start at the value G , get G 's "key" (let's call it H ), if H