what to install in order to view the graph which is in .dot file
I think this answers it: windows - Graphviz: How to go from .dot to a graph? - Stack Overflow
Thanks for suggesting this article. Someone has answered this problem in a clear manner.
There are also a bunch of online versions. Quick search gave me: Graphviz Online