The Fleury algorithm includes the following steps:
Make sure the graph has either 0 or 2 odd vertices.
If there are 0 odd vertices, start anywhere. If there are two odd vertices, start with one of them.
Follow the edges one at a time. If you have a choice between a bridge and a bridge, always choose a bridge.
Stop when you finish the edges.
If Tarjan bridges are found, and these bridges are stored in the adjacency matrix, we do not need to run the tarjan algorithm each time to check if the edge is a bridge or not. We can check it O (1) times for all other bridge requests. Thus, the time complexity of the Flury algorithm can be reduced to O (V + E) {, since it is DFS}, but this method O (V2) requires additional storage space for bridges.
Himanshu singh
source share