Given the following script, which I extracted from the comments on the question and edited to make it successful by removing some extraneous semicolons:
digraph G { graph [ bgcolor=lightgray, resolution=128, fontname=Arial, fontcolor=blue, fontsize=10 ]; node [ fontname=Arial, fontcolor=blue, fontsize=10]; edge [ fontname=Helvetica, fontcolor=red, fontsize=10 ]; "arunachaltourism.com/" -> "webcomindia.biz/profile.php"; "arunachaltourism.com/#" -> "arunachaltourism.com/"; "arunachaltourism.com/aalo.php" -> "arunachaltourism.com/"; }
I called the script x.dot . Now, working:
dot x.dot -Tjpg -o x.jpg
... produces:

... because the default is rankdir=BT . Insert:
rankdir=LR
... since the second line of the script and running the script through dot again gives:

Thus, it is not clear to me why the chart could have been horizontally aligned for the first time, but you can see how using rankdir can make the chart go either horizontally or vertically.
Simon
source share