Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/OmkarPathak/pygorithm
/ Node
Class
Node
pygorithm/data_structures/trie.py:6–11 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4
''
&
#x27;
5
6
class
Node:
7
def
__init__(self, v, p=None, w=False):
8
self.word = w
#If the node represents the end of a word or not
9
self.parent = p
10
self.value = v
11
self.children = {}
12
13
14
class
Trie:
Callers
2
__init__
Method · 0.70
insert
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected