I've got a problem with a 2-section question:
G=(V,E) is undirected unweighted graph. t,s are nodes in the graph. e=(a,b) is an edge in the graph.
1) Suggest an efficient algorithm that checks if e is a part of all shortest paths from s to t.
2) Suggest an efficient algorithm that checks if e is a part of one of the shortest paths from s to t.
I've seen in the forum suggestion to solving section 1, by using Dijkstra algorithm twice, once with the given edge and once without. Then you need to compare the results. However, I didn't managed to figure more efficient way to solve section 2. I guess it is possible, but I don't know how.
Any suggestions?