Package pygraphlib :: Module pydot :: Class Dot
[show private | hide private]
[frames | no frames]

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

See the pydot module level documentation for usage examples.
Method Summary
  __init__(self, graph, name, dot, dotty, neato)
  save_dot(self, file_name)
Saves the current graph represenation as a dot file
  save_image(self, file_name, mode)
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

Method Details

save_dot(self, file_name=None)

Saves the current graph represenation as a dot 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

Generated by Epydoc 2.1 on Wed Jan 5 09:38:28 2005 http://epydoc.sf.net