code: def has_path(graph, src, dest):
      visited = set()
      worklist = [src]
      while worklist:
          current = worklist.pop()
          if current in visited:
              continue
          visited.add(current)
          if dest in graph.successors(current):
              return True
          worklist.extend(graph.successors(current))
      return False
  
file_path: catboost/contrib/python/pythran/pythran/graph.py
label_desc: Use image node_id 1 for calling a global function with example usage: has_path(graph, src, dest) and returns: False, True