Skip to content

Commit f0fa262

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

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
from . import _graph
2-
from . import _algorithms

pydatastructs/graphs/algorithms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
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 import _algorithms
14+
from pydatastructs.graphs._backend.cpp._algorithms import bfs_adjacency_list, bfs_adjacency_matrix
1515

1616
__all__ = [
1717
'breadth_first_search',
@@ -95,10 +95,10 @@ def breadth_first_search(
9595
else:
9696
if (graph._impl == "adjacency_list"):
9797
extra_args = args if args else ()
98-
return _algorithms.bfs_adjacency_list(graph, source_node, operation, extra_args)
98+
return bfs_adjacency_list(graph, source_node, operation, extra_args)
9999
if (graph._impl == "adjacency_matrix"):
100100
extra_args = args if args else ()
101-
return _algorithms.bfs_adjacency_matrix(graph, source_node, operation, extra_args)
101+
return bfs_adjacency_matrix(graph, source_node, operation, extra_args)
102102

103103
def _breadth_first_search_adjacency_list(
104104
graph, source_node, operation, *args, **kwargs):

0 commit comments

Comments
 (0)