Home | Trees | Index | Help |
---|
Package pygraphlib :: Module pydot :: Class Dot |
|
A class that creates a graphviz (dot language) representation
of the graph. To make use of the image generation features If the
dot
and dotty
programs must be either be in the
system path or their location needs to be specified in the constructor
. Download and install the
graphviz programs then either set the
pydot
module level documentation for usage
examples.
Method Summary | |
---|---|
__init__(self,
graph,
name,
dot,
dotty,
neato)
| |
Saves the current graph represenation as a dot file | |
Saves the dot file as an image file | |
Sets the styles for all edges | |
Sets the styles for all nodes | |
Sets the stye for a single edge | |
Sets the style for a node. | |
Changes the overall style | |
Displays the current graph via dotty |
Method Details |
---|
save_dot(self, file_name=None)Saves the current graph represenation as adot file
|
save_image(self, file_name='out', mode='gif')Saves the dot file as an image file |
set_all_edge_style(self, **kwargs)Sets the styles for all edges |
set_all_node_style(self, **kwargs)Sets the styles for all nodes |
set_edge_style(self, head, tail, **kwargs)Sets the stye for a single edge |
set_node_style(self, node, **kwargs)Sets the style for a node. |
set_style(self, **kwargs)Changes the overall style |
show(self)Displays the current graph via dotty |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Jan 5 09:38:28 2005 | http://epydoc.sf.net |