I have problem with implementing this algorithm. I know how to implement it if graph doesn't contain multiple edges and self edges. But now I'm trying with them. I know it's not hard. But it gives me WA. I don't know why. My code . Please help!!! Thanks!
You have:
It gives WA when
// There are no bridges
UPD: Suggestion just check by edge id.