<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Examples — PyGraphviz 1.5 documentation</title> <link rel="stylesheet" href="_static/alabaster.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <script type="text/javascript" src="_static/language_data.js"></script> <link rel="search" type="application/opensearchdescription+xml" title="Search within PyGraphviz 1.5 documentation" href="_static/opensearch.xml"/> <link rel="index" title="Index" href="genindex.html" /> <link rel="search" title="Search" href="search.html" /> <link rel="prev" title="Legal" href="reference/legal.html" /> <link rel="stylesheet" href="_static/custom.css" type="text/css" /> <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" /> </head><body> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="examples"> <h1>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h1> <blockquote> <div><p>See the examples for sample usage and ideas <a class="reference external" href="http://github.com/pygraphviz/pygraphviz/tree/master/examples">http://github.com/pygraphviz/pygraphviz/tree/master/examples</a></p> <p>There is a complete reference guide at <a class="reference external" href="http://pygraphviz.github.io/documentation/latest">http://pygraphviz.github.io/documentation/latest</a></p> </div></blockquote> <div class="section" id="simple"> <h2>Simple<a class="headerlink" href="#simple" title="Permalink to this headline">¶</a></h2> <blockquote> <div><p>A basic example showing how to read and write dot files and draw graphs.</p> <blockquote> <div><a class="reference external" href="http://github.com/pygraphviz/pygraphviz/tree/master/examples/simple.py">http://github.com/pygraphviz/pygraphviz/tree/master/examples/simple.py</a></div></blockquote> </div></blockquote> </div> <div class="section" id="star"> <h2>Star<a class="headerlink" href="#star" title="Permalink to this headline">¶</a></h2> <blockquote> <div><p>An example showing how to set attributes.</p> <blockquote> <div><a class="reference external" href="http://github.com/pygraphviz/pygraphviz/tree/master/examples/star.py">http://github.com/pygraphviz/pygraphviz/tree/master/examples/star.py</a></div></blockquote> </div></blockquote> </div> <div class="section" id="miles"> <h2>Miles<a class="headerlink" href="#miles" title="Permalink to this headline">¶</a></h2> <blockquote> <div><p>An example showing how to use Graphviz to draw a graph with given positions.</p> <blockquote> <div><a class="reference external" href="http://github.com/pygraphviz/pygraphviz/tree/master/examples/miles.py">http://github.com/pygraphviz/pygraphviz/tree/master/examples/miles.py</a></div></blockquote> </div></blockquote> </div> </div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"> <h1 class="logo"><a href="index.html">PyGraphviz</a></h1> <h3>Navigation</h3> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="download.html">Download</a></li> <li class="toctree-l1"><a class="reference internal" href="install.html">Installing</a></li> <li class="toctree-l1"><a class="reference internal" href="tutorial.html">Tutorial</a></li> <li class="toctree-l1"><a class="reference internal" href="reference/index.html">Reference</a></li> <li class="toctree-l1 current"><a class="current reference internal" href="#">Examples</a><ul> <li class="toctree-l2"><a class="reference internal" href="#simple">Simple</a></li> <li class="toctree-l2"><a class="reference internal" href="#star">Star</a></li> <li class="toctree-l2"><a class="reference internal" href="#miles">Miles</a></li> </ul> </li> </ul> <div class="relations"> <h3>Related Topics</h3> <ul> <li><a href="index.html">Documentation overview</a><ul> <li>Previous: <a href="reference/legal.html" title="previous chapter">Legal</a></li> </ul></li> </ul> </div> <div id="searchbox" style="display: none" role="search"> <h3>Quick search</h3> <div class="searchformwrapper"> <form class="search" action="search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="footer"> ©2004-2019, PyGraphviz Developers. | Powered by <a href="http://sphinx-doc.org/">Sphinx 1.8.3</a> & <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.8</a> </div> </body> </html>