MCPcopy Create free account
hub / github.com/bterwijn/memory_graph / is_root

Method is_root

memory_graph/node_base.py:39–43  ·  view source on GitHub ↗

Return if the node is the root node.

(self)

Source from the content-addressed store, hash-verified

37 self.parent_indices[parent].append(parent_index)
38
39 def is_root(self):
40 """
41 Return if the node is the root node.
42 """
43 return len(self.parent_indices) == 0
44
45 def get_parent_indices(self):
46 return self.parent_indices

Callers 1

add_to_graphviz_graphFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected