Given an undirected graph G=V,E, 2 vertices: x, y and an edge e,
I would like to check if there is a path from x to y that contains the given edge e.
What I thought: Solve this by defining a network flow where x and y are source and sink and check if the flow in e is more than 0 it means that there is a path. BUT there are 2 problems:
So I'm guessing it's not the right approach... If someone can give an idea it'd be great.
One approach could be the following: