Skip to content

Commit f324d92

Browse files
Prerak SinghPrerak Singh
authored andcommitted
bug fix
1 parent f0fa262 commit f324d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydatastructs/graphs/algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from pydatastructs.graphs.graph import Graph
1212
from pydatastructs.linear_data_structures.algorithms import merge_sort_parallel
1313
from pydatastructs import PriorityQueue
14-
from pydatastructs.graphs._backend.cpp._algorithms import bfs_adjacency_list, bfs_adjacency_matrix
1514

1615
__all__ = [
1716
'breadth_first_search',
@@ -93,6 +92,7 @@ def breadth_first_search(
9392
return getattr(algorithms, func)(
9493
graph, source_node, operation, *args, **kwargs)
9594
else:
95+
from pydatastructs.graphs._backend.cpp._algorithms import bfs_adjacency_list, bfs_adjacency_matrix
9696
if (graph._impl == "adjacency_list"):
9797
extra_args = args if args else ()
9898
return bfs_adjacency_list(graph, source_node, operation, extra_args)

0 commit comments

Comments
 (0)