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

Method add_reference

memory_graph/html_table.py:86–94  ·  view source on GitHub ↗

Helper function to add a reference to the table.

(self, node, child, rounded=False, border=1, dashed=False)

Source from the content-addressed store, hash-verified

84 else:
85 self.add_value(child, rounded, border)
86
87 def add_value(self, value, rounded=False, border=1):
88 """ Helper function to add 'value' to the table. """
89 self.check_add_new_line()
90 r = ' STYLE="ROUNDED"' if rounded else ''
91 self.add_column(f'<TD BORDER="{border}"{r}>{format_string(value, not rounded)}</TD>')
92 self.is_empty = False
93 self.col_count += 1
94
95 def add_reference(self, node, child, rounded=False, border=1, dashed=False):
96 """ Helper function to add a reference to the table. """
97 self.check_add_new_line()

Callers 1

add_entryMethod · 0.95

Calls 2

check_add_new_lineMethod · 0.95
get_nameMethod · 0.80

Tested by

no test coverage detected