To run GraphViz, use command

dot -o friends.jpg -Tjpg friends.dot