Module Expr Str Import alias ImportFrom alias Import alias Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Lambda arguments args NameParam NameParam defaults TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return Call NameLoad Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad For NameStore NameLoad body If NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad orelse Assign NameStore NameLoad If CompareLt NameLoad Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad orelse Assign NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareGtE NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMult BinOpMult ListLoad Num NameLoad Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign NameStore Num Assign NameStore BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body If CompareLt NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad TupleLoad BinOpDiv BinOpAdd SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Num NameLoad AugAssignAdd NameStore AttributeLoad NameLoad attr For NameStore NameLoad body If NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad orelse Assign NameStore NameLoad If NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad orelse Assign NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad keyword SubscriptLoad NameLoad Index NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareGtE NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Num Num Num Expr Call AttributeLoad NameLoad attr Num Num Num Num Expr Call AttributeLoad NameLoad attr Num Num Num Num Expr Call AttributeLoad NameLoad attr Num Num Num Num Assign NameStore Call NameLoad NameLoad keyword Call AttributeLoad NameLoad attr keyword ListLoad Str Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr
N/A N/A 
GraphTree.py - 
======================================================

:Author: Andreas Heger
:Release: $Id$
:Date: |today|
:Tags: Python

Code
----

 N/A sys Graph * N/A Phylolib N/A FORMAT SortAByB N/A N/A a b N/A N/A N/A c N/A map N/A N/A N/A x y N/A N/A y x a b N/A N/A N/A c sort N/A N/A map N/A N/A N/A x N/A N/A x N/A 1 c N/A GraphTree N/A Graph N/A __init__ N/A N/A self tree order info colours N/A None None None N/A N/A N/A N/A Graph __init__ self FORMAT N/A num_leaves N/A N/A tree getNumLeaves N/A N/A order N/A N/A order N/A N/A tree getNodesDepthFirstFinish N/A last_height 0.0 N/A vertical_order 1 N/A order N/A list order N/A colours N/A N/A colours N/A list colours N/A info N/A N/A info N/A list info N/A heights N/A N/A index order N/A N/A N/A N/A heights append N/A N/A tree getHeight index N/A order N/A SortAByB order heights N/A index order N/A N/A colours N/A N/A colour N/A colours N/A index N/A N/A colour None N/A N/A last_height N/A N/A tree getHeight index N/A N/A vertical_order 2 N/A last_height N/A N/A tree getHeight index N/A info N/A N/A info1 N/A info N/A index N/A N/A info1 None N/A n N/A Node N/A str index N/A str index vertical_order vertical_order info1 info1 colour colour N/A N/A N/A self AddNode n N/A N/A index num_leaves N/A N/A e N/A Edge N/A str N/A N/A tree getLeftChild index N/A str index N/A N/A N/A self AddEdge e N/A e N/A Edge N/A str N/A N/A tree getRightChild index N/A str index N/A N/A N/A self AddEdge e N/A N/A GraphTreeExplicit N/A Graph N/A __init__ N/A N/A self tree info colours N/A None None N/A N/A N/A N/A Graph __init__ self FORMAT N/A num_leaves N/A N/A tree getNumLeaves N/A order N/A N/A tree getNodesDepthFirstFinish N/A coords N/A N/A N/A 0 num_leaves 2 N/A N/A self mStepSizeX 100 N/A N/A self mStepSizeY 100 N/A N/A self mBaseLineY 0 N/A current_x 0 N/A current_y N/A N/A self mBaseLineY N/A self mStepSizeY N/A node order N/A N/A N/A node num_leaves N/A N/A N/A coords N/A node N/A current_x N/A self mBaseLineY N/A current_x N/A self mStepSizeX N/A N/A left_child N/A N/A tree getLeftChild node N/A right_child N/A N/A tree getRightChild node N/A N/A coords N/A node N/A N/A N/A N/A N/A coords N/A left_child N/A 0 N/A N/A coords N/A right_child N/A 0 2 current_y N/A current_y N/A self mStepSizeY N/A index order N/A N/A colours N/A N/A colour N/A colours N/A index N/A N/A colour None N/A info N/A N/A info1 N/A info N/A index N/A N/A info1 None N/A n N/A Node N/A str index N/A str index location N/A coords N/A index info1 info1 colour colour N/A N/A N/A self AddNode n N/A N/A index num_leaves N/A N/A e N/A Edge N/A str N/A N/A tree getLeftChild index N/A str index N/A N/A N/A self AddEdge e N/A e N/A Edge N/A str N/A N/A tree getRightChild index N/A str index N/A N/A N/A self AddEdge e N/A N/A N/A N/A __name__ __main__ N/A N/A t N/A N/A Phylolib makeTree 5 N/A N/A N/A t joinNodes 0 1 1.0 1.0 N/A N/A N/A t joinNodes 2 3 1.0 1.0 N/A N/A N/A t joinNodes 4 5 1.0 1.0 N/A N/A N/A t joinNodes 6 7 1.0 1.0 N/A g N/A GraphTree t order N/A N/A t getNodesDepthFirstFinish colours N/A blue green red yellow black blue green red yellow N/A N/A N/A g Write N/A sys stdout