MCPcopy
hub / github.com/celery/celery / update

Method update

celery/utils/graph.py:95–102  ·  view source on GitHub ↗

Update graph with data from a list of ``(obj, deps)`` tuples.

(self, it)

Source from the content-addressed store, hash-verified

93 return sum(l)
94
95 def update(self, it):
96 """Update graph with data from a list of ``(obj, deps)`` tuples."""
97 tups = list(it)
98 for obj, _ in tups:
99 self.add_arc(obj)
100 for obj, deps in tups:
101 for dep in deps:
102 self.add_edge(obj, dep)
103
104 def edges(self):
105 """Return generator that yields for all edges in the graph."""

Callers 2

__init__Method · 0.95
connectMethod · 0.45

Calls 2

add_arcMethod · 0.95
add_edgeMethod · 0.95

Tested by

no test coverage detected