We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31a4e29 commit 3db825cCopy full SHA for 3db825c
Data Structures/Graphs/BFS.py
@@ -1,4 +1,5 @@
1
-#Function To implement BFS (Breath First Search)
+# BFS Traversal of Graph using Adjacency Matrix Representation
2
+# Function To implement BFS (Breath First Search)
3
def Breathfirstsearch(matrix,start):
4
visit=[start] #Keep Track of Visited Vertex
5
queue=[start] #BFS is implemented using queue
0 commit comments