Tabnine Logo
TreeUtils.pruneInnerNode
Code IndexAdd Tabnine to your IDE (free)

How to use
pruneInnerNode
method
in
phylo.tree.model.TreeUtils

Best Java code snippets using phylo.tree.model.TreeUtils.pruneInnerNode (Showing top 5 results out of 315)

origin: de.unijena.bioinf.phylo/phyloTree-lib.model

/**
 * Deletes the specified node from the tree.The child of this node becomes child
 * of its parent.
 * If the node has more than one child, nothing have to be done.
 *
 * @param node: the node, that has to be deleted
 * @param tree: the tree, from that the tree has to be deleted
 */
public static void pruneInnerNode(TreeNode node, Tree tree) {
  pruneInnerNode(node, tree, true, false);
}
origin: de.unijena.bioinf.phylo/phyloTree-lib.model

public static void pruneInnerNode(TreeNode node, Tree tree, boolean sumEdgeWeight) {
  pruneInnerNode(node, tree, sumEdgeWeight, false);
}
origin: de.unijena.bioinf.phylo/phyloTree-lib.model

public static void pruneDegreeOneNodes(Tree tree, boolean sumEdgeWeight, boolean useParentWeight) {
  for (int i = 0; i < tree.getMaxIndex(); i++) {
    TreeNode n = tree.getVertex(i);
    if (n == null) {
      continue;
    }
    //prune the node, if it is not null
    pruneInnerNode(n, tree, sumEdgeWeight, useParentWeight);
  }
}
origin: de.unijena.bioinf.phylo/phyloTree-lib.utils

  supertree.removeVertex(cladeToCheck);
} else {
  TreeUtils.pruneInnerNode(cladeToCheck, supertree, false);
origin: de.unijena.bioinf.phylo/phyloTree-lib.utils

  supertree.removeVertex(cladeNodeToCheck);
} else {
  TreeUtils.pruneInnerNode(cladeNodeToCheck, supertree, false);
phylo.tree.modelTreeUtilspruneInnerNode

Javadoc

Deletes the specified node from the tree.The child of this node becomes child of its parent. If the node has more than one child, nothing have to be done.

Popular methods of TreeUtils

  • getLeafLabels
    The set of labels of all leafs below the input tree node
  • pruneDegreeOneNodes
  • commonLeaves
    Returns the list of leaves contained in all trees
  • deleteInnerLabels
    Clones all trees and removes all innter vertex labels from the clones. The given source trees are no
  • getChildrenMap
  • removeSubtreeFromTree
  • reorderingBootstrapLabelsForRooting
  • rerootToOutgroup
    Reroot tree with the new root placed at the incomming edge of the given outgroup
  • addLeafesFromChildren
  • buildFitchUnion
  • calculateTreeResolution
  • checkForChilds
  • calculateTreeResolution,
  • checkForChilds,
  • cloneAndPruneTrees,
  • connectParent,
  • containsInnerLabels,
  • deleteRootNode,
  • findAndMergeDuplicates,
  • flipLeaves,
  • getLeafesFromLabels

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Permission (java.security)
    Legacy security code; do not use.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Reference (javax.naming)
  • JOptionPane (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now