Package entropy :: Module debug :: Class GraphDrawer

Class GraphDrawer

source code


GraphDrawer is a draw generator for entropy.graph.Graph objects using pydot library, which uses Graphviz. It requires pydot installed. NOTE for packagers: this is debug code included in the entropy core library. It doesn't mean you're allowed to include pydot as entropy dependency. If you do so, the same class will be wiped out and you'll be fucked ;-)

Instance Methods
 
__init__(self, entropy_client, graph)
GraphDrawer Constructor.
source code
 
generate_png(self)
Generate a PNG from current Graph content.
source code
 
generate_dot(self)
Generate RAW dot file that can be used to feed graphviz
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, entropy_client, graph)
(Constructor)

source code 

GraphDrawer Constructor.

Parameters:
  • entropy_client (entropy.client.interfaces.client.Client) - Entropy Client interfaces
  • graph (entropy.graph.Graph) - a finalized entropy.graph.Graph object ready to be drawed
Overrides: object.__init__