File: index.html

package info (click to toggle)
python-pygraphviz 1.3.1-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 664 kB
  • sloc: ansic: 4,970; python: 2,523; makefile: 152
file content (84 lines) | stat: -rw-r--r-- 2,634 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{% extends "layout.html" %}
{% set title = 'Overview' %}
{% block body %}


<blockquote>
<p>PyGraphviz is a Python interface to the Graphviz graph layout and
   visualization package.

   With PyGraphviz you can create, edit, read, write, and draw graphs using
   Python to access the Graphviz graph data structure and layout algorithms.

   PyGraphviz is independent from
   <a href="http://networkx.lanl.gov">NetworkX </a> but provides
   a similar programming interface.

</p>
</blockquote>

<h2>Quick Example</h2>


<table align="center" style="margin-left: 0px"><tr>
    <td width="50%">
<blockquote>
<pre>
&gt;&gt;&gt; import pygraphviz as pgv
&gt;&gt;&gt; G=pgv.AGraph()
&gt;&gt;&gt; G.add_node('a')
&gt;&gt;&gt; G.add_edge('b','c')
&gt;&gt;&gt; G
strict graph {
        a;
        b -- c;
}

To load a dot file use

&gt;&gt;&gt; G=pgv.AGraph("file.dot")
</pre>
    </td>
    <td width="50%">
</td></tr>
</blockquote>
</table>


<h2>Documentation</h2>

<table class="contentstable" align="center" style="margin-left: 30px"><tr>
  <td width="50%">

    <p class="biglink"><a class="biglink" href="{{ pathto("tutorial") }}">Tutorial</a><br/>
       <span class="linkdescr">start here</span></p>
    <p class="biglink"><a class="biglink" href="{{ pathto("reference/index") }}">Reference</a><br/>
       <span class="linkdescr">guide to all functions and classes</span></p>
    <p class="biglink"><a class="biglink" href="{{ pathto("examples") }}">Examples</a><br/>
       <span class="linkdescr">using the library</span></p>
  </td>
  <td width="50%">
    <p class="biglink"><a class="biglink" href="{{ pathto("contents") }}">Contents</a><br/>
       <span class="linkdescr">a complete overview</span></p>
    <p class="biglink"><a class="biglink" href="{{ pathto("search") }}">Search Page</a><br/>
       <span class="linkdescr">search the documentation</span></p>
    <p class="biglink"><a class="biglink" href="{{ pathto("genindex") }}">General Index</a><br/>
       <span class="linkdescr">all functions, classes, terms</span></p>
    <p class="biglink"><a class="biglink" href="{{ pathto("modindex") }}">Module Index</a><br/>
       <span class="linkdescr">quick access to all documented modules</span></p>
  </td></tr>
</table>


  <h2>Get PyGraphviz</h2>
<blockquote>
  <p>
    Download PyGraphviz from the 
    <a href="http://pypi.python.org/pypi/pygraphviz">Python Package
    Index</a>.
  </p>
  <p>The code source code is available from the NetworkX SVN server at
    <tt><a href="http://networkx.lanl.gov/svn/pygraphviz/trunk">http://networkx.lanl.gov/svn/pygraphviz/trunk</a></tt>.</p>
</blockquote>

{% endblock %}