To install xdot just follow these instructions.
sudo apt-get install xdot
Which will install xdot and any other packages on which it depends.
|Maintainer||Python Applications Packaging Team <firstname.lastname@example.org>|
|Description||interactive viewer for Graphviz dot files It uses internally the graphviz's xdot output format as an intermediate format, and PyGTK and Cairo for rendering. xdot can be used either as a standalone application from command line, or as a library embedded in your Python 3 application.|