Skip to content

Commit 3db825c

Browse files
authored
Update BFS.py
1 parent 31a4e29 commit 3db825c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Data Structures/Graphs/BFS.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#Function To implement BFS (Breath First Search)
1+
# BFS Traversal of Graph using Adjacency Matrix Representation
2+
# Function To implement BFS (Breath First Search)
23
def Breathfirstsearch(matrix,start):
34
visit=[start] #Keep Track of Visited Vertex
45
queue=[start] #BFS is implemented using queue

0 commit comments

Comments
 (0)