1
<?xml version="1.0" encoding="iso-8859-1"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
"DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<title>yapgvb.Digraph</title>
7
<link rel="stylesheet" href="epydoc.css" type="text/css"></link>
9
<body bgcolor="white" text="black" link="blue" vlink="#204080"
12
<!-- =========== START OF NAVBAR =========== -->
13
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
15
<th class="navbar"> <a class="navbar" href="yapgvb-module.html">Home</a> </th>
16
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
17
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
18
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
19
<th class="navbar" align="right" width="100%">
20
<table border="0" cellpadding="0" cellspacing="0">
21
<tr><th class="navbar" align="center">
24
</p></th></tr></table>
28
<table width="100%" cellpadding="0" cellspacing="0">
31
<font size="-1"><b class="breadcrumbs">
32
<a href="yapgvb-module.html">Package yapgvb</a> ::
36
<td><table cellpadding="0" cellspacing="0">
37
<tr><td align="right"><font size="-2">[show private | <a href="../public/yapgvb.Digraph-class.html">hide private</a>]</font></td></tr>
38
<tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a> | <a href="yapgvb.Digraph-class.html" target="_top">no frames</a>]</font></td></tr>
42
<!-- =========== START OF CLASS DESCRIPTION =========== -->
43
<h2 class="class">Class Digraph</h2>
45
<pre class="base-tree">
46
<a href="yapgvb.GraphBase-class.html"><code>GraphBase</code></a> --+
57
<!-- =========== START OF METHOD SUMMARY =========== -->
58
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
59
<tr bgcolor="#70b0f0" class="summary">
60
<th colspan="2">Method Summary</th></tr>
61
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
62
<td><code><span class="summary-sig"><a href="yapgvb.Digraph-class.html#__init__" class="summary-sig-name"><code>__init__</code></a>(<span class=summary-sig-arg>self</span>,
63
<span class=summary-sig-arg>name_or_open_file</span>,
64
<span class=summary-sig-arg>strict</span>)</span></code>
66
Create a new graph, or read an existing graph from a dot file.</td></tr>
67
<tr bgcolor="#e8f0f8" class="group">
68
<th colspan="2"> Inherited from GraphBase</th></tr>
69
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
70
<td><code><span class="summary-sig"><a href="yapgvb.GraphBase-class.html#add_edge" class="summary-sig-name"><code>add_edge</code></a>(<span class=summary-sig-arg>self</span>,
71
<span class=summary-sig-arg>tail</span>,
72
<span class=summary-sig-arg>head</span>)</span></code>
74
Create an edge between two nodes.</td></tr>
75
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
76
<td><code><span class="summary-sig"><a href="yapgvb.GraphBase-class.html#add_node" class="summary-sig-name"><code>add_node</code></a>(<span class=summary-sig-arg>self</span>,
77
<span class=summary-sig-arg>name</span>,
78
<span class="summary-sig-kwarg">**attributes</span>)</span></code>
80
Add a node to the graph.</td></tr>
81
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
82
<td><code><span class="summary-sig"><a href="yapgvb.GraphBase-class.html#from_bgl" class="summary-sig-name"><code>from_bgl</code></a>(<span class=summary-sig-arg>cls</span>,
83
<span class=summary-sig-arg>bgraph</span>,
84
<span class=summary-sig-arg>node_properties</span>,
85
<span class=summary-sig-arg>edge_properties</span>)</span></code>
87
Translate a boost.python graph into a yapgvb graph. <i>(Class method)</i>
89
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
90
<td><code><span class="summary-sig"><a href="yapgvb.GraphBase-class.html#layout" class="summary-sig-name"><code>layout</code></a>(<span class=summary-sig-arg>self</span>,
91
<span class=summary-sig-arg>engine</span>,
92
<span class=summary-sig-arg>rendering_context</span>)</span></code>
94
Process the graph with one of the layout engines supplied by
96
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
97
<td><code><span class="summary-sig"><a href="yapgvb.GraphBase-class.html#read" class="summary-sig-name"><code>read</code></a>(<span class=summary-sig-arg>cls</span>,
98
<span class=summary-sig-arg>input_stream_or_filename</span>)</span></code>
100
Read a graph from a dot file. <i>(Class method)</i>
102
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
103
<td><code><span class="summary-sig"><a href="yapgvb.GraphBase-class.html#render" class="summary-sig-name"><code>render</code></a>(<span class=summary-sig-arg>self</span>,
104
<span class=summary-sig-arg>outstream</span>,
105
<span class=summary-sig-arg>format</span>,
106
<span class=summary-sig-arg>rendering_context</span>)</span></code>
108
Render the graph to a file.</td></tr>
109
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
110
<td><code><span class="summary-sig"><a href="yapgvb.GraphBase-class.html#to_bgl" class="summary-sig-name"><code>to_bgl</code></a>(<span class=summary-sig-arg>ygraph</span>,
111
<span class=summary-sig-arg>node_properties</span>,
112
<span class=summary-sig-arg>edge_properties</span>)</span></code>
114
Translate a graphviz graph into a boost.python graph.</td></tr>
115
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
116
<td><code><span class="summary-sig"><a href="yapgvb.GraphBase-class.html#write" class="summary-sig-name"><code>write</code></a>(<span class=summary-sig-arg>self</span>,
117
<span class=summary-sig-arg>output_stream_or_filename</span>)</span></code>
119
Output the graph in the dot language format.</td></tr>
123
<!-- =========== START OF PROPERTY SUMMARY =========== -->
124
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
125
<tr bgcolor="#70b0f0" class="summary">
126
<th colspan="2">Property Summary</th></tr>
127
<tr bgcolor="#e8f0f8" class="group">
128
<th colspan="2"> Inherited from GraphBase</th></tr>
129
<tr><td align="right" valign="top" width="15%"><font size="-1">rect</font></td>
130
<td><b><a href="yapgvb.GraphBase-class.html#bb"><code>bb</code></a></b>: Bounding box of drawing in integer points.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
131
<td><b><a href="yapgvb.GraphBase-class.html#bgcolor"><code>bgcolor</code></a></b>: When attached to the root graph, this color is used as the background
132
for entire canvas.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">boolean</font></td>
133
<td><b><a href="yapgvb.GraphBase-class.html#center"><code>center</code></a></b>: If true, the drawing is centered in the output canvas.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
134
<td><b><a href="yapgvb.GraphBase-class.html#charset"><code>charset</code></a></b>: Specifies the character encoding used when interpreting string input
135
as a text label.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">string</font></td>
136
<td><b><a href="yapgvb.GraphBase-class.html#clusterrank"><code>clusterrank</code></a></b>: Mode used for handling clusters.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
137
<td><b><a href="yapgvb.GraphBase-class.html#colorscheme"><code>colorscheme</code></a></b>: This attribute specifies a color scheme namespace.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
138
<td><b><a href="yapgvb.GraphBase-class.html#comment"><code>comment</code></a></b>: Comments are inserted into output.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">boolean</font></td>
139
<td><b><a href="yapgvb.GraphBase-class.html#compound"><code>compound</code></a></b>: If true, allow edges between clusters.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">boolean</font></td>
140
<td><b><a href="yapgvb.GraphBase-class.html#concentrate"><code>concentrate</code></a></b>: If true, use edge concentrators.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
141
<td><b><a href="yapgvb.GraphBase-class.html#Damping"><code>Damping</code></a></b>: Factor damping force motions.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
142
<td><b><a href="yapgvb.GraphBase-class.html#defaultdist"><code>defaultdist</code></a></b>: This specifies the distance between nodes in separate connected
143
components.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">int</font></td>
144
<td><b><a href="yapgvb.GraphBase-class.html#dim"><code>dim</code></a></b>: Set the number of dimensions used for the layout.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
145
<td><b><a href="yapgvb.GraphBase-class.html#directed"><code>directed</code></a></b>: True if directed, False if not.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
146
<td><b><a href="yapgvb.GraphBase-class.html#dpi"><code>dpi</code></a></b>: This specifies the expected number of pixels per inch on a display
147
device.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
148
<td><b><a href="yapgvb.GraphBase-class.html#edges"><code>edges</code></a></b>: An iterator of edges contained in the graph.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
149
<td><b><a href="yapgvb.GraphBase-class.html#epsilon"><code>epsilon</code></a></b>: Terminating condition.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
150
<td><b><a href="yapgvb.GraphBase-class.html#fontcolor"><code>fontcolor</code></a></b>: Color used for text.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
151
<td><b><a href="yapgvb.GraphBase-class.html#fontname"><code>fontname</code></a></b>: Font used for text.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
152
<td><b><a href="yapgvb.GraphBase-class.html#fontpath"><code>fontpath</code></a></b>: Directory list used by libgd to search for bitmap fonts if Graphviz
153
was not built with the fontconfig library.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
154
<td><b><a href="yapgvb.GraphBase-class.html#fontsize"><code>fontsize</code></a></b>: Font size, in points, used for text.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
155
<td><b><a href="yapgvb.GraphBase-class.html#graph"><code>graph</code></a></b>: graph to which this belongs (parent, if a subgraph, otherwise
156
self)</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
157
<td><b><a href="yapgvb.GraphBase-class.html#K"><code>K</code></a></b>: Spring constant used in virtual physical model.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
158
<td><b><a href="yapgvb.GraphBase-class.html#label"><code>label</code></a></b>: Text label attached to objects.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
159
<td><b><a href="yapgvb.GraphBase-class.html#labeljust"><code>labeljust</code></a></b>: Justification for cluster labels.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
160
<td><b><a href="yapgvb.GraphBase-class.html#labelloc"><code>labelloc</code></a></b>: Top/bottom placement of graph and cluster labels.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">boolean</font></td>
161
<td><b><a href="yapgvb.GraphBase-class.html#landscape"><code>landscape</code></a></b>: If true, the graph is rendered in landscape mode.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
162
<td><b><a href="yapgvb.GraphBase-class.html#layers"><code>layers</code></a></b>: Specifies a linearly ordered list of layer names attached to the graph
163
The graph is then output in separate layers.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
164
<td><b><a href="yapgvb.GraphBase-class.html#layersep"><code>layersep</code></a></b>: Specifies the separator characters used to split the layers attribute
165
into a list of layer names.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
166
<td><b><a href="yapgvb.GraphBase-class.html#levelsgap"><code>levelsgap</code></a></b>: Specifies strictness of level constraints in neato when
167
mode="hier".</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">(x,y) or (x,y,z) tuple</font></td>
168
<td><b><a href="yapgvb.GraphBase-class.html#lp"><code>lp</code></a></b>: Label position, in points.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
169
<td><b><a href="yapgvb.GraphBase-class.html#margin"><code>margin</code></a></b>: For graphs, this sets x and y margins of canvas, in inches.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">int</font></td>
170
<td><b><a href="yapgvb.GraphBase-class.html#maxiter"><code>maxiter</code></a></b>: Sets the number of iterations used.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
171
<td><b><a href="yapgvb.GraphBase-class.html#mclimit"><code>mclimit</code></a></b>: Multiplicative scale factor used to alter the MinQuit (default = 8)
172
and MaxIter (default = 24) parameters used during crossing
173
minimization.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
174
<td><b><a href="yapgvb.GraphBase-class.html#mindist"><code>mindist</code></a></b>: Specifies the minimum separation between all nodes.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
175
<td><b><a href="yapgvb.GraphBase-class.html#mode"><code>mode</code></a></b>: Technique for optimizing the layout.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
176
<td><b><a href="yapgvb.GraphBase-class.html#model"><code>model</code></a></b>: This value specifies how the distance matrix is computed for the input
177
graph.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
178
<td><b><a href="yapgvb.GraphBase-class.html#nodes"><code>nodes</code></a></b>: An iterator over all nodes in the graph</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
179
<td><b><a href="yapgvb.GraphBase-class.html#nodesep"><code>nodesep</code></a></b>: Minimum space between two adjacent nodes in the same rank, in
180
inches.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">boolean</font></td>
181
<td><b><a href="yapgvb.GraphBase-class.html#nojustify"><code>nojustify</code></a></b>: By default, the justification of multi-line labels is done within the
182
largest context that makes sense.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">boolean</font></td>
183
<td><b><a href="yapgvb.GraphBase-class.html#normalize"><code>normalize</code></a></b>: If set, normalize coordinates of final layout so that the first point
184
is at the origin, and then rotate the layout so that the first edge is
185
horizontal.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
186
<td><b><a href="yapgvb.GraphBase-class.html#nslimit"><code>nslimit</code></a></b></td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
187
<td><b><a href="yapgvb.GraphBase-class.html#nslimit1"><code>nslimit1</code></a></b></td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
188
<td><b><a href="yapgvb.GraphBase-class.html#ordering"><code>ordering</code></a></b>: If "out" for a graph G, and n is a node in G, then edges
189
n->* appear left-to-right in the same order in which they are
190
defined.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
191
<td><b><a href="yapgvb.GraphBase-class.html#orientation"><code>orientation</code></a></b>: Angle, in degrees, used to rotate node shapes.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">string</font></td>
192
<td><b><a href="yapgvb.GraphBase-class.html#outputorder"><code>outputorder</code></a></b>: Specify order in which nodes and edges are drawn.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
193
<td><b><a href="yapgvb.GraphBase-class.html#overlap"><code>overlap</code></a></b>: Determines if and how node overlaps should be removed.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">boolean</font></td>
194
<td><b><a href="yapgvb.GraphBase-class.html#pack"><code>pack</code></a></b>: This is true if the value of pack is "true"
195
(case-insensitive) or a non-negative integer.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">string</font></td>
196
<td><b><a href="yapgvb.GraphBase-class.html#packmode"><code>packmode</code></a></b>: This indicates the granularity and method used for packing (cf.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">pointf</font></td>
197
<td><b><a href="yapgvb.GraphBase-class.html#page"><code>page</code></a></b>: Width and height of output pages, in inches.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">string</font></td>
198
<td><b><a href="yapgvb.GraphBase-class.html#pagedir"><code>pagedir</code></a></b>: If the page attribute is set and applicable, this attribute specifies
199
the order in which the pages are emitted.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
200
<td><b><a href="yapgvb.GraphBase-class.html#quantum"><code>quantum</code></a></b>: If quantum > 0.0, node label dimensions will be rounded to integral
201
multiples of the quantum.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">string</font></td>
202
<td><b><a href="yapgvb.GraphBase-class.html#rankdir"><code>rankdir</code></a></b>: Sets direction of graph layout.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
203
<td><b><a href="yapgvb.GraphBase-class.html#ranksep"><code>ranksep</code></a></b>: In dot, this the gives desired rank separation, in inches.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
204
<td><b><a href="yapgvb.GraphBase-class.html#ratio"><code>ratio</code></a></b>: Sets the aspect ratio (drawing height/drawing width) for the
205
drawing.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">boolean</font></td>
206
<td><b><a href="yapgvb.GraphBase-class.html#remincross"><code>remincross</code></a></b>: If true and there are multiple clusters, run cross minimization a
207
second time.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
208
<td><b><a href="yapgvb.GraphBase-class.html#resolution"><code>resolution</code></a></b>: This is a synonym for the dpi attribute.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
209
<td><b><a href="yapgvb.GraphBase-class.html#root"><code>root</code></a></b>: This specifies nodes to be used as the center of the layout and the
210
root of the generated spanning tree.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">int</font></td>
211
<td><b><a href="yapgvb.GraphBase-class.html#rotate"><code>rotate</code></a></b>: If 90, set drawing orientation to landscape.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">int</font></td>
212
<td><b><a href="yapgvb.GraphBase-class.html#samplepoints"><code>samplepoints</code></a></b>: If the input graph defines the vertices attribute, and output is dot
213
or xdot, this give the number of points used to represent circles and
214
ellipses.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">int</font></td>
215
<td><b><a href="yapgvb.GraphBase-class.html#searchsize"><code>searchsize</code></a></b>: During network simplex, maximum number of edges with negative cut
216
values to search when looking for one with minimum cut value.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
217
<td><b><a href="yapgvb.GraphBase-class.html#sep"><code>sep</code></a></b>: Fraction to increase polygons (multiply coordinates by 1 + sep) for
218
purposes of determining overlap.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">int</font></td>
219
<td><b><a href="yapgvb.GraphBase-class.html#showboxes"><code>showboxes</code></a></b>: Print guide boxes in PostScript at the beginning of routesplines if 1,
220
or at the end if 2.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">pointf</font></td>
221
<td><b><a href="yapgvb.GraphBase-class.html#size"><code>size</code></a></b>: Maximum width and height of drawing, in inches.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
222
<td><b><a href="yapgvb.GraphBase-class.html#splines"><code>splines</code></a></b>: Controls how, and if, edges are represented.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">string</font></td>
223
<td><b><a href="yapgvb.GraphBase-class.html#start"><code>start</code></a></b>: Parameter used to determine the initial layout of nodes.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
224
<td><b><a href="yapgvb.GraphBase-class.html#strict"><code>strict</code></a></b>: True if strict, False if not.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
225
<td><b><a href="yapgvb.GraphBase-class.html#stylesheet"><code>stylesheet</code></a></b>: A URL or pathname specifying an XML style sheet, used in SVG
226
output.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
227
<td><b><a href="yapgvb.GraphBase-class.html#target"><code>target</code></a></b>: If the object has a URL, this attribute determines which window of the
228
browser is used for the URL.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">boolean</font></td>
229
<td><b><a href="yapgvb.GraphBase-class.html#truecolor"><code>truecolor</code></a></b>: If set explicitly to true or false, the value determines whether or
230
not internal bitmap rendering relies on a truecolor color model or uses a
231
color palette.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
232
<td><b><a href="yapgvb.GraphBase-class.html#URL"><code>URL</code></a></b>: Hyperlinks incorporated into device-dependent output.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">str</font></td>
233
<td><b><a href="yapgvb.GraphBase-class.html#viewport"><code>viewport</code></a></b>: Clipping window on final drawing.</td></tr><tr><td align="right" valign="top" width="15%"><font size="-1">float</font></td>
234
<td><b><a href="yapgvb.GraphBase-class.html#voro_margin"><code>voro_margin</code></a></b></td></tr></table><br />
237
<!-- =========== START OF INSTANCE METHOD DETAILS =========== -->
238
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
239
<tr bgcolor="#70b0f0" class="details">
240
<th colspan="2">Instance Method Details</th></tr>
243
<a name="__init__"></a>
244
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
245
<h3><span class="sig"><span class="sig-name">__init__</span>(<span class=sig-arg>self</span>,
246
<span class=sig-arg>name_or_open_file</span>=<span class=sig-default>'untitled graph'</span>,
247
<span class=sig-arg>strict</span>=<span class=sig-default>False</span>)</span>
248
<br /><i>(Constructor)</i>
250
Create a new graph, or read an existing graph from a dot file. If
251
name_or_open_file is a string, it will be interpreted as a name for a
252
new graph. If it is an open filestream, it will be treated as a DOT
253
file and the graph will be read. If strict is True, only one edge (a,b)
254
will be allowed between nodes a and b; if strict is False, any number
255
of edges (a,b) may exist.
257
<dl><dt><b>Overrides:</b></dt>
258
<dd><a href="yapgvb.GraphBase-class.html#__init__"><code>yapgvb.GraphBase.__init__</code></a></dd>
265
<!-- =========== START OF NAVBAR =========== -->
266
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
268
<th class="navbar"> <a class="navbar" href="yapgvb-module.html">Home</a> </th>
269
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
270
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
271
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
272
<th class="navbar" align="right" width="100%">
273
<table border="0" cellpadding="0" cellspacing="0">
274
<tr><th class="navbar" align="center">
277
</p></th></tr></table>
282
<table border="0" cellpadding="0" cellspacing="0" width="100%">
284
<td align="left"><font size="-2">Generated by Epydoc 2.1 on Tue Feb 21 14:34:48 2006</font></td>
285
<td align="right"><a href="http://epydoc.sourceforge.net"
286
><font size="-2">http://epydoc.sf.net</font></a></td>