public static void main(String args[]){
        
        Graph<Integer> graph = new Graph<Integer>(false);
        graph.addEdge(2, 1);
        graph.addEdge(3, 1);
        graph.addEdge(1, 4);
        graph.addEdge(4, 5);
        graph.addEdge(5, 1);
        Bridge<Integer> ap = new Bridge<Integer>();
        Set<Edge<Integer>> result = ap.getBridge(graph);
        System.out.print(result);
    }
http://www.geeksforgeeks.org/bridge-in-a-graph/
src/com/interview/graph/Bridge.java