I wonder know how to visualize an AST(abstract syntax tree) with less across on edge which connected nodes. Or how to generate a AST graph with less mess or more readable?
By the way, the across happens in a special situation: I have multiple ASTs in one graph and they may share nodes(e.g. a circuit module with input and output pins could be a good example, it has many across as wires, gate as node).
I search about it. But most result I got is about AST definition but little about visualization. I want to know is there any algorithm to optimize node placement in the graph?