Wraps text to a specified width for node labels.
(text, width)
| 9 | NODE_WIDTH = 80 # Approx characters per line in node label |
| 10 | |
| 11 | def wrap_text(text, width): |
| 12 | """Wraps text to a specified width for node labels.""" |
| 13 | return '\n'.join(textwrap.wrap(text, width=width, replace_whitespace=False)) |
| 14 | |
| 15 | def build_graph_recursive(graph, hyp_id, hyp_map, child_map): |
| 16 | """Recursively adds nodes and edges to the graphviz object.""" |
no outgoing calls
no test coverage detected