Home | Trees | Indices | Help |
|
---|
|
A dot directed graph. The contents of the graph are constructed from the following instance variables:
- nodes: A list of DotGraphNodes, encoding the nodes that are present in the graph. Each node is characterized a set of attributes, including an optional label.
- edges: A list of DotGraphEdges, encoding the edges that are present in the graph. Each edge is characterized by a set of attributes, including an optional label.
- node\_defaults: Default attributes for nodes.
- edge\_defaults: Default attributes for edges.
- body: A string that is appended as-is in the body of the graph. This can be used to build more complex dot graphs.
The link() method can be used to resolve crossreference links within the graph. In particular, if the 'href' attribute of any node or edge is assigned a value of the form <name>, then it will be replaced by the URL of the object with that name. This applies to the body as well as the nodes and edges.
To render the graph, use the methods write() and render(). Usually, you should call link() before you render the graph.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
_uids =
A set of all uids that that have been generated, used to ensure that each new graph has a unique uid. |
|||
DEFAULT_NODE_DEFAULTS =
|
|||
DEFAULT_EDGE_DEFAULTS =
|
|||
DEFAULT_LATEX_SIZE =
The default minimum size in inches (width,height) for graphs when rendering with to\_latex() |
|||
DEFAULT_HTML_SIZE =
The default minimum size in inches (width,height) for graphs when rendering with to\_html() |
|||
DEFAULT_HTML_IMAGE_FORMAT =
The default format used to generate images by to\_html() |
|
|||
title The title of the graph. |
|||
caption A caption for the graph. |
|||
list of DotGraphNode |
nodes A list of the nodes that are present in the graph. |
||
list of DotGraphEdge |
edges A list of the edges that are present in the graph. |
||
str |
body A string that should be included as-is in the body of the graph. |
||
node_defaults Default attribute values for nodes. |
|||
edge_defaults Default attribute values for edges. |
|||
uid A unique identifier for this graph. |
|
|
|
|
language , and write
the result to filename .
|
language . Return the result as a string, or None
if the rendering failed.
|
|
|
_uidsA set of all uids that that have been generated, used to ensure that each new graph has a unique uid.
|
|
uidA unique identifier for this graph. This can be used as a filename when rendering the graph. No two DotGraphs will have the same uid. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jun 13 23:51:15 2008 | http://epydoc.sourceforge.net |