From 629d3450bdf5f02652205fd648acd1334fabbfcf Mon Sep 17 00:00:00 2001 From: Ivan Carvalho Date: Sun, 13 Aug 2023 13:20:16 -0400 Subject: [PATCH] Sync with new functions --- rustworkx/__init__.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/rustworkx/__init__.py b/rustworkx/__init__.py index 5e6f18c02..48f65fde0 100644 --- a/rustworkx/__init__.py +++ b/rustworkx/__init__.py @@ -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