The function for graphviz_layout() is in the nx_agraph.py file: http://networkx.github.io/documentation/latest/_modules/networkx/drawing/nx_agraph.html#graphviz_layout
In order to use it in NetworkX you need to also install PyGraphviz https://pypi.python.org/pypi/pygraphviz