Skip to content

Commit 6e95083

Browse files
authored
Update and rename Cut Bridge or Cur Edges to Cut Bridge or Cut Edges
1 parent 28addb1 commit 6e95083

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Cut Bridge or Cur Edges renamed to Cut Bridge or Cut Edges

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
System.out.println("Cut Edges / Cut Bridges are: ");
2424
for (int i = 0; i < noOfVertices; i++) {
2525
if (dfsnum[i] == 0) {
26-
cutVertices(adjMatrix,i,i);
26+
cutEdges(adjMatrix,i,i);
2727
}
2828
}
2929
}
3030

31-
static void cutVertices(int[][] adjMatrix, int vertex,int pre){
31+
static void cutEdges(int[][] adjMatrix, int vertex,int pre){
3232
low[vertex]=dfsnum[vertex]=num++;
3333

3434
for(int v=0;v<noOfVertices;v++){
@@ -38,7 +38,7 @@
3838
low[vertex]=Math.min(low[vertex],dfsnum[v]);
3939
}
4040
else{
41-
cutVertices(adjMatrix,v,vertex);
41+
cutEdges(adjMatrix,v,vertex);
4242
low[vertex] = Math.min(low[vertex],low[v]);
4343
if(low[v]>dfsnum[vertex]){
4444
System.out.println((char)('A'+vertex) +" ----- "+(char)('A'+v));

0 commit comments

Comments
 (0)