Package fuzz :: Package visplugins :: Module graph_pydot :: Class FuzzPyDot
[hide private]
[frames] | no frames]

Class FuzzPyDot

source code

               object --+    
                        |    
abc_plugin.AbstractPlugin --+
                            |
                           FuzzPyDot

Pydot visualization plugin for fuzzpy

This plugin converts vertices and edges to pydot elements then create a rendering based on the 'format' attribute (default=png).

Nested Classes [hide private]

Inherited from abc_plugin.AbstractPlugin: __metaclass__

Instance Methods [hide private]
 
__init__(self, obj=None, *args, **kwargs)
Plugin constructor.
source code
list
marshall_vertices(self)
Converts vertices to PyDot nodes.
source code
list
marshall_edges(self)
Converts edges to PyDot edges.
source code
str
visualize(self, *args, **kwargs)
PyDot visualization method.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
bool
is_supported()
Return whether this plugin is supported.
source code
Class Variables [hide private]
  __abstractmethods__ = frozenset([])
  _abc_cache = set([])

Inherited from abc_plugin.AbstractPlugin: types

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, obj=None, *args, **kwargs)
(Constructor)

source code 

Plugin constructor.

Maps the specified graph object locally and marshalls method keywords to local arguments for the PyDot object.

Parameters:
Overrides: object.__init__

is_supported()
Static Method

source code 

Return whether this plugin is supported.

Returns: bool
True if the plugin can run in this environment.
Overrides: abc_plugin.AbstractPlugin.is_supported

marshall_vertices(self)

source code 

Converts vertices to PyDot nodes.

Adds GraphViz attributes to each vertex and converts it into a pydot.Node object.

Returns: list
List of pydot.Node objects.

marshall_edges(self)

source code 

Converts edges to PyDot edges.

Adds GraphViz attributes to edges and registers them all as PyDot edge objects.

Returns: list
List of pydot.Edge objects.

visualize(self, *args, **kwargs)

source code 

PyDot visualization method.

Converts all vertices and edges from the graph provided to the plugin's constructor into a PyDot graph and converts any apppropriate attributes to be passed to GraphViz.

Returns: str
Output data string.
Overrides: abc_plugin.AbstractPlugin.visualize