Skip to content

Commit cde16e8

Browse files
committed
Done the changes
1 parent aa0c3e7 commit cde16e8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Data Structures/Graphs/Bridge_edge_in_graph.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Given an undirected graph of V vertices and E edges and another edge (c-d), the
66
find if the given edge is a bridge in graph, i.e., removing the edge disconnects the graph.
77
88
Link to the problem: https://practice.geeksforgeeks.org/problems/bridge-edge-in-graph/1
9+
910
*/
1011

1112
#include<bits/stdc++.h>
@@ -74,12 +75,14 @@ int main()
7475
{
7576
int t;
7677
cin >> t;
77-
while (t--) {
78+
while (t--)
79+
{
7880
int V, E;
7981
cin >> V >> E;
8082
vector<int> adj[V];
8183
int i=0;
82-
while (i++<E) {
84+
while (i++<E)
85+
{
8386
int u, v;
8487
cin >> u >> v;
8588
adj[u].push_back (v);

0 commit comments

Comments
 (0)