so I faced this question and I hope that someone can help me in it.
Given an undirected graph G = (V, E), 2 vertices x,y and an edge e = (v,u).
Suggest an algorithm to find if there's a simple path from x to y that includes the edge e.
So the focus here is on the simple path and not a regular path, for a regular path it's an easy problem using the BFS to search a path from x to v and a path from u to y.
I know that the problem can be solved using the max-flow approach but I just don't recognize how to build a new graph that can implement a max-flow algorithm on it so it tells whether the above criterion is achieved or not, I hope for help.
Thanks in advance.