Check out example codes for "pygraphviz show". It will help you in understanding the concepts better.

Code Example 1

>>> G.draw('file.png')  # write previously positioned graph to PNG file
>>> G.draw('file.ps',prog='circo') # use circo to position, write PS file

Learn ReactJs, React Native from akashmittal.com