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

Method add_dots

memory_graph/html_table.py:96–101  ·  view source on GitHub ↗

Helper function to add dots to the table.

(self, rounded=False, border=1)

Source from the content-addressed store, hash-verified

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()
98 r = ' STYLE="ROUNDED"' if rounded else ''
99 self.add_column(f'<TD BORDER="{border}" PORT="ref{self.ref_count}"{r}> </TD>')
100 self.edges.append( (f'{node.get_name()}:ref{self.ref_count}',
101 child.get_name(), dashed) )
102 self.ref_count += 1
103 self.col_count += 1
104

Callers 5

fill_html_tableMethod · 0.80

Calls 1

check_add_new_lineMethod · 0.95

Tested by

no test coverage detected