Skip to content

Commit

Permalink
Sync with new functions
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanIsCoding committed Aug 13, 2023
1 parent 7ef3159 commit 629d345
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions rustworkx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,14 +488,8 @@ def has_path(
raise TypeError("Invalid Input Type %s for graph" % type(graph))


@has_path.register(PyDiGraph)
def _digraph_has_path(graph, source, target, as_undirected=False):
return digraph_has_path(graph, source, target=target, as_undirected=as_undirected)


@has_path.register(PyGraph)
def _graph_has_path(graph, source, target):
return graph_has_path(graph, source, target=target)
has_path.register(PyDiGraph, digraph_has_path)
has_path.register(PyGraph, graph_has_path)


@functools.singledispatch
Expand Down

0 comments on commit 629d345

Please sign in to comment.