Codota Logo
TreeNode.getChildAt
Code IndexAdd Codota to your IDE (free)

How to use
getChildAt
method
in
phylo.tree.model.TreeNode

Best Java code snippets using phylo.tree.model.TreeNode.getChildAt (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: de.unijena.bioinf.phylo/phyloTree-lib.utils

  TreeNode node = subtree.getRoot().getChildAt(0);
  newNode = addSubtree(tree, parent, node);
} else {
origin: de.unijena.bioinf.phylo/phyloTree-lib.model

TreeNode child = ((TreeNode) t.getRoot()).getChildAt(0);
t.removeVertex(t.getRoot());
t.setRoot(child);
origin: de.unijena.bioinf.phylo/phyloTree-lib.model

TreeNode child = node.getChildAt(0);
TreeNode parent = node.getParent();
double weight_parent = node.getDistanceToParent();
origin: de.unijena.bioinf.phylo/phyloTree-lib.model

  t.removeVertex(newNode);
} else if (newNode.childCount() == 1) {
  TreeNode child = newNode.getChildAt(0);
  t.removeVertex(newNode);
  if (parent != null) {
phylo.tree.modelTreeNodegetChildAt

Javadoc

Returns the child at position i

Popular methods of TreeNode

  • <init>
    Create a new node with given label
  • childCount
    Returns the number of children of this node.
  • depthFirstIterator
    Returns a depth first Iterable. This enables iterating the subtree rooted at this node in post order
  • getLabel
    The label of this node. If the label is not set, this looks for a label property TreeNodeProperties#
  • getParent
    Return the parent of this node.
  • isInnerNode
    Returns true if this is not a leaf.
  • isLeaf
    Returns true if this node is a leaf.
  • children
    Returns an Iterable over all children of this node. This allow using nodes in foreach loop: for(Tre
  • getChildren
    Get a list of all children of this node. It is helpful if one wants to iterate over all children and
  • getEdgeToParent
    Return the edge to the parent node or null.
  • getLevel
    Lazy and one time computation of the level of this node.
  • getDistanceToParent
    Returns the distance to the parent node. If the node has no parent (root node ) -1 is returned.
  • getLevel,
  • getDistanceToParent,
  • getLeaves,
  • setLabel,
  • cloneNode,
  • equalsNode,
  • getGraph,
  • getIndex,
  • getPartition

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • ImageIO (javax.imageio)
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now