ó
 ,µ[c           @   sÃ   d  Z  d d l Z y% d d l Z d d l m Z d GHWna e k
 rš y% d d l Z d d l m Z d GHWq› e k
 r– d GHd GHd GHd GH‚  q› Xn Xe j	 d d ƒ Z
 e e
 d	 ƒ d
 GHd S(   s  
=============
Write Dotfile
=============


Write a dot file from a networkx graph for further processing with graphviz.

You need to have either pygraphviz or pydot for this example.

See https://networkx.github.io/documentation/latest/reference/drawing.html
for more info.

iÿÿÿÿN(   t	   write_dots   using package pygraphvizs   using package pydots)   Both pygraphviz and pydot were not found sK   see  https://networkx.github.io/documentation/latest/reference/drawing.htmli   s   grid.dots%   Now run: neato -Tps grid.dot >grid.ps(    (    (   t   __doc__t   networkxt   nxt
   pygraphvizt   networkx.drawing.nx_agraphR    t   ImportErrort   pydott   networkx.drawing.nx_pydott   grid_2d_grapht   G(    (    (    s;   share/doc/networkx-2.2/examples/pygraphviz/write_dotfile.pyt   <module>   s&   
		