TheAlgorithms/Go

Fix Graphs/BFS implementation.

kAvEh-- opened this issue · 0 comments

For disconnected graphs like the below graph, it will catch in an infinite loop.
Also, this implementation doesn't support the directional graphs.

For more info this link will help