Generate Graphviz file from Inorder traversal
Input Node:
15 12 14 17 19 130 16 10 20 18
            public static void Inorder(Node root, int level) {
                if(root != null) {
                    System.out.println(root.data);
                    if(root.left != null){
                        System.out.print("" + root.data + "->");
                    }
                    Inorder(root.left, level+1);

                    if(root.right != null){
                        System.out.print("" + root.data + "->");
                    }
                    Inorder(root.right, level+1);
                }
            }
            
Graphviz file
                                        digraph G{
                                            15
                                            15->12
                                            12->10
                                            12->14
                                            15->17
                                            17->16
                                            17->19
                                            19->18
                                            19->130
                                            130->20
                                        }