tree.js | |
bbop. | Purpose: Extend bbop.model in model.js to be handy for a (phylo)tree. |
bbop. | |
Functions | |
node | Same as parent, but just takes id in constructor. |
bbop. | |
Functions | |
edge | Same as parent class, but optionally adds distance as an argument. |
distance | Return an edge’s “distance”. |
clone | Make sure that clone gets distance as well. |
bbop. | |
Functions | |
graph | Same as parent. |
default_sort | The default comparator function for ordering the brackets. |
layout | With the current graph, produce a usable layout object. |
dump_cohorts | Dump the cohorts; for debugging? |
dump_dist | Dump distances; for debugging? |
dump_brackets | Dump brackets; for debugging? |
Purpose: Extend bbop.model in model.js to be handy for a (phylo)tree.
TODO: /Much/ better documentation. I have no idea what’s going on in there anymore...
TODO: Subtree calculation during bracket_down.
Functions | |
graph | Same as parent. |
default_sort | The default comparator function for ordering the brackets. |
layout | With the current graph, produce a usable layout object. |
dump_cohorts | Dump the cohorts; for debugging? |
dump_dist | Dump distances; for debugging? |
dump_brackets | Dump brackets; for debugging? |
Same as parent, but just takes id in constructor.
bbop.model.tree.node = function( new_id )
Same as parent class, but optionally adds distance as an argument.
bbop.model.tree.edge = function( parent, child, distance )
Return an edge’s “distance”.
bbop.model.tree.edge.prototype.distance = function( d )
Make sure that clone gets distance as well.
bbop.model.tree.edge.prototype.clone = function()
Same as parent.
bbop.model.tree.graph = function()
The default comparator function for ordering the brackets.
this.default_sort = function( a, b )
With the current graph, produce a usable layout object.
this.layout = function ()
Dump the cohorts; for debugging?
this.dump_cohorts = function()
Dump distances; for debugging?
this.dump_dist = function( in_arg )
Dump brackets; for debugging?
this.dump_brackets = function( brack )