MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / visit

Method visit

camel/tasks/task.py:337–347  ·  view source on GitHub ↗
(task: Task)

Source from the content-addressed store, hash-verified

335
336 # recursive visit the vertices
337 def visit(task: Task):
338 if task.id in visited:
339 return
340 visited.add(task.id)
341
342 # go deep for dependencies
343 for sub_task in task.subtasks:
344 visit(sub_task)
345
346 # add current task to stack which have no dependencies.
347 stack.append(task)
348
349 for task in tasks:
350 visit(task)

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected