Skip to content

Commit 0b0555e

Browse files
committed
resolved error
1 parent b88ad69 commit 0b0555e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: pydatastructs/graphs/_backend/cpp/algorithms.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ PyMODINIT_FUNC PyInit__bfs(void) {
1818
PyObject *module = PyModule_Create(&bfs_module);
1919
if (module == NULL) return NULL;
2020
return module;
21-
}
21+
}

Diff for: pydatastructs/graphs/_extensions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414

1515
extensions = [
1616
Extension(bfs, sources=bfs_sources)
17-
]
17+
]

Diff for: pydatastructs/graphs/algorithms.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1384,4 +1384,4 @@ def bfs(graph, start_vertex, backend=Backend.PYTHON):
13841384
visited.add(vertex)
13851385
result.append(vertex)
13861386
q.extend(graph.get(vertex, []))
1387-
return result
1387+
return result

Diff for: pydatastructs/graphs/tests/test_algorithms.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -520,4 +520,4 @@ def test_bfs():
520520

521521
result_cpp = bfs(graph, start_vertex, backend=Backend.CPP)
522522
result_cpp_list = [x for x in result_cpp]
523-
assert result_cpp_list == expected
523+
assert result_cpp_list == expected

0 commit comments

Comments
 (0)