Package ZenUtils :: Module Graphics :: Class NetworkGraph
[show private | hide private]
[frames | no frames]

Type NetworkGraph

object --+
         |
        NetworkGraph


This class is a wrapper for pydot functionality. It provides a means of graphically representing nodes in a tree.
Method Summary
  __init__(self, device, node, parentName)
  complexProcessNodes(self)
This method (will) processes nodes and builds the graphs node at a time with actual pydot objects (as opposed to building a graph from a list of edges).
  prepare(self, nodeProcessing, edges)
  render(self, format, withNetworks)
This will render an image format suitable for display in a browser.
  setGraphFromEdges(self, edges, directed)
  simpleProcessNodes(self, node, parentName, doNets, doDevices)
This method processes the child nodes of the passed node, and then its children.
  write(self, fdOrPath, format)
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Method Details

complexProcessNodes(self)

This method (will) processes nodes and builds the graphs node at a time with actual pydot objects (as opposed to building a graph from a list of edges). This allows for custom presentation changes based on node attributes.

render(self, format='png', withNetworks=False)

This will render an image format suitable for display in a browser.

simpleProcessNodes(self, node=None, parentName=None, doNets=False, doDevices=False)

This method processes the child nodes of the passed node, and then its children. It returns a list of tuples where the tuples represent a simple parent-child relationship.

Generated by Epydoc 2.1 on Thu Aug 16 09:55:08 2007 http://epydoc.sf.net