MCPcopy
hub / github.com/celery/celery / edges

Method edges

celery/utils/graph.py:104–106  ·  view source on GitHub ↗

Return generator that yields for all edges in the graph.

(self)

Source from the content-addressed store, hash-verified

102 self.add_edge(obj, dep)
103
104 def edges(self):
105 """Return generator that yields for all edges in the graph."""
106 return (obj for obj, adj in self.items() if adj)
107
108 def _khan62(self):
109 """Perform Khan's simple topological sort algorithm from '62.

Callers 1

test_edgesMethod · 0.80

Calls 1

itemsMethod · 0.45

Tested by 1

test_edgesMethod · 0.64