add pack=true attribute to graphviz graph
[bigint-presentation-code.git] / src / bigint_presentation_code / register_allocator.py
index 6e7d87c27948a5e5a1abd6fec3cece7772f2a334..94de331e6862efd22039c64c03a51bd87c1533f9 100644 (file)
@@ -474,7 +474,10 @@ class InterferenceGraph:
                 # both directions
                 if edge_key not in edges and edge_key[::-1] not in edges:
                     edges[edge_key] = edge
-        lines = ["graph {"]
+        lines = [
+            "graph {",
+            "    graph [pack = true]",
+        ]
         for node, node_id in node_ids.items():
             label_lines = []  # type: list[str]
             for k, v in node.merged_ssa_val.ssa_val_offsets.items():