Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ example.py
File
example.py
src/4/easy_implementation_of_the_iterator_protocol/example.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# example.py
2
#
3
# Example of depth-first search using a generator
4
Callers
nothing calls this directly
Calls
3
Node
Class · 0.70
add_child
Method · 0.45
depth_first
Method · 0.45
Tested by
no test coverage detected