treenode.js
No description.

File Location

/goog/structs/treenode.js

Classes

goog.structs.TreeNode
Generic tree node data structure with arbitrary number of child nodes. It is possible to create a dynamic tree structure by overriding #getParent and #getChildren in a subclass. All other getters will automatically work.

Public Protected Private

Global Functions

goog.structs.TreeNode.findCommonAncestor(var_args) goog.structs.TreeNode.<KEY, VALUE>
Finds the deepest common ancestor of the given nodes. The concept of ancestor is not strict in this case, it includes the node itself.
Arguments:
var_args : ...!goog.structs.TreeNode.<KEY, VALUE>
The nodes.
Returns: goog.structs.TreeNode.<KEY, VALUE>  The common ancestor of the nodes or null if they are from different trees.
code »

Directory structs

File Reference