Package visgraph :: Package layouts :: Class GraphLayout
[hide private]
[frames] | no frames]

Class GraphLayout

source code

A graph layout uses several graph meta properties and node properties to communicate with a renderer which is expected to display the graph:

size = ( width, height ) - Set by the renderer position = ( x, y ) - Set by the layout repr = <display text> - A fallback for what to display on a node

Instance Methods [hide private]
__init__(self, graph) source code
Layout the graph nodes and edges
source code
getLayoutSize(self) source code
renderGraph(self, rend)
Render the graph to the given renderer.
source code