Recently I wanted to include a directed graph in a LaTeX document. I was running dot on the graph file
$ dot -Tps2 nfa.dot > nfa.eps
to receive the EPS file which I wanted to include in LaTeX. Running TeXShop with pdflatex for typesetting on a file containing
however returns the error
! LaTeX Error: Unknown graphics extension: .eps.
This can be resolved by adding
which allows to convert eps images to pdf for use with pdflatex. This works perfect.