Package visgraph :: Package layouts :: Module dynadag :: Class DynadagLayout
[hide private]
[frames] | no frames]

Class DynadagLayout

source code


Instance Methods [hide private]
 
__init__(self, graph) source code
 
getLayoutSize(self)
Return the width,height of this layout.
source code
 
_baryCenter(self, nid, ninfo) source code
 
_cmpBaryCenter(self, node1, node2) source code
 
_orderNodesByBary(self) source code
 
_getNodeRelPos(self, nid, ninfo) source code
 
_getLayerCross(self, layernum) source code
 
_bubSortNodes(self) source code
 
_addGhostNodes(self)
Translate the hierarchical graph we are given into dynadag friendly graph with ghost nodes....
source code
 
layoutGraph(self)
Layout the graph nodes and edges
source code
 
_scoochXParents(self, nid, ninfo, lr=None) source code
 
_scoochXKids(self, nid, ninfo, lr=None) source code
 
_scoochXAlign(self, ninfo, kinfo, lr=None)
If possible, move the "kidinfo" node toward ninfo along the X axis...
source code
 
_scoochX(self, ninfo, xdelta) source code
 
_calcEdgeLines(self) source code

Inherited from GraphLayout: renderGraph

Method Details [hide private]

__init__(self, graph)
(Constructor)

source code 
Overrides: GraphLayout.__init__

getLayoutSize(self)

source code 

Return the width,height of this layout.

Overrides: GraphLayout.getLayoutSize

layoutGraph(self)

source code 

Layout the graph nodes and edges

Overrides: GraphLayout.layoutGraph
(inherited documentation)

_scoochXAlign(self, ninfo, kinfo, lr=None)

source code 

If possible, move the "kidinfo" node toward ninfo along the X axis... If "lr" is specified, only move the "kidnode" (which may be "above" you...) if it is moving either SCOOCH_LEFT or SCOOCH_RIGHT as specified.