Closed shairubin closed 4 months ago
`def to_dot(self) -> str: """Returns the dot representation of the graph.
Returns: A dot representation of the graph. """ edges = "\n".join(f'"{f}" -> "{t}";' for f, t in self.edges) return f"""\
digraph G {{ rankdir = LR; node [shape=box]; {edges} }} """ `
`def to_dot(self) -> str: """Returns the dot representation of the graph.
digraph G {{ rankdir = LR; node [shape=box]; {edges} }} """ `