MCPcopy
hub / github.com/celery/celery / add_arc

Method add_arc

celery/utils/graph.py:48–50  ·  view source on GitHub ↗

Add an object to the graph.

(self, obj)

Source from the content-addressed store, hash-verified

46 self.update(it)
47
48 def add_arc(self, obj):
49 """Add an object to the graph."""
50 self.adjacent.setdefault(obj, [])
51
52 def add_edge(self, A, B):
53 """Add an edge from object ``A`` to object ``B``.

Callers 4

build_graphMethod · 0.95
topsortMethod · 0.95
updateMethod · 0.95
workersFunction · 0.95

Calls 1

setdefaultMethod · 0.45

Tested by

no test coverage detected