diff --git a/slither/printers/call/call_graph.py b/slither/printers/call/call_graph.py index 668606760..377f69ad2 100644 --- a/slither/printers/call/call_graph.py +++ b/slither/printers/call/call_graph.py @@ -257,6 +257,8 @@ def output(self, filename: str) -> Output: } content = "\n".join( ["strict digraph {"] + + ['rankdir="LR"'] + + ["node [shape=box]"] + [_process_functions(list(all_functions_as_dict.values()))] + ["}"] ) @@ -268,7 +270,11 @@ def output(self, filename: str) -> Output: with open(derived_output_filename, "w", encoding="utf8") as f: info += f"Call Graph: {derived_output_filename}\n" content = "\n".join( - ["strict digraph {"] + [_process_functions(derived_contract.functions)] + ["}"] + ["strict digraph {"] + + ['rankdir="LR"'] + + ["node [shape=box]"] + + [_process_functions(derived_contract.functions)] + + ["}"] ) f.write(content) results.append((derived_output_filename, content))