Skip to content

Commit d72bf9d

Browse files
committed
Updated A* algorithm
1 parent 47e8368 commit d72bf9d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pydatastructs/graphs/algorithms.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -753,13 +753,6 @@ def shortest_paths(graph: Graph, algorithm: str,
753753
raise_if_backend_is_not_python(
754754
shortest_paths, kwargs.get('backend', Backend.PYTHON))
755755
import pydatastructs.graphs.algorithms as algorithms
756-
if algorithm == 'a_star_with_manhattan':
757-
# A* with this implementation requires both source and target
758-
if not target:
759-
raise ValueError("Target must be specified for A* algorithm")
760-
761-
func = "_a_star_with_manhattan_" + graph._impl
762-
return getattr(algorithms, func)(graph, source, target)
763756
func = "_" + algorithm + "_" + graph._impl
764757
if not hasattr(algorithms, func):
765758
raise NotImplementedError(

0 commit comments

Comments
 (0)