EnsEMBL::Web::OrderedTree

Location: /modules/EnsEMBL/Web/OrderedTree.pm
Source code · Permalink
No superclasses
No subclasses

Overview

Method

Unknown

  • _flush_tree
  • _node
  • _nodes
  • _sorted_keys
  • get_node
  • new
  • user_data
Documentation coverage: 53 %

Methods

    _generate_unique_key
    Generate a unique key ...
    View source

    create_node
    Creates a new EnsEMBL::Web::OrderedTree::Node with key given by the first param, and the second is a hashref of values to store in the node. If $key is "undef" then generate a "unique" key Node is always created as a "root" node - needs to be "append"ed to another node to make it part of another tree.
    View source

    dump
    Dumpes the contents of the tree to standard out... Takes two parameters - "$title" - displayed in the error log and "$temp" a template used to display attributes of the node.. attribute keys bracketed with "[[""]]" e.g.

    * "[[name]]" * "[[name]] - [[description]]"


    View source

    flush_user
    Remove all user data in this tree...
    View source

    leaf_codes
    Returns array of codes of leaves...
    View source

    leaves
    Returns array of nodes in L-R order that are leaves [ right = left+1 ]
    View source

    nodes
    Returns an array of nodes from the tree in L-R order..
    View source

    top_level
    Returns a list of root nodes...
    View source