Uses of Interface
org.aksw.commons.collections.trees.Tree
Packages that use Tree
-
Uses of Tree in org.aksw.commons.collections.trees
Classes in org.aksw.commons.collections.trees that implement TreeModifier and TypeClassDescriptionclassLabeledTree<K, X extends LabeledNode<K>>classSubTree<T>classTreeBase<T>Base implementation that lazily caches the node countclassTreeDirect<T>classTreeImpl<T>classTreeReplace<T>Tree wrapper with bidirectional replacement of certain nodes with leaf nodes.Fields in org.aksw.commons.collections.trees declared as TreeMethods in org.aksw.commons.collections.trees that return TreeModifier and TypeMethodDescriptionCreate a new tree from the given root nodeTreeNode.getTree()TreeNodeImpl.getTree()static <T> Tree<T> TreeUtils.remapSubTreesToLeafs(Tree<T> tree, Function<? super T, ? extends T> remapFn) Create a new tree object which has certain nodes remapped with *leaf* nodesstatic <T> Tree<T> TreeUtils.removeUnaryNodes(Tree<T> tree) static <T> Tree<T> static <T> Tree<T> Methods in org.aksw.commons.collections.trees with parameters of type TreeModifier and TypeMethodDescriptionstatic <T> Map<T, com.google.common.collect.Multimap<T, T>> TreeUtils.clusterNodesByFirstMultiaryAncestor(Tree<T> tree, com.google.common.collect.Multimap<T, T> mapping) Input: A mapping from cache nodes to candidate query nodes represented as a Multimapinvalid input: '<'T, T>.static <T> longstatic <T> longstatic <A,B> com.google.common.collect.Multimap <A, B> TreeUtils.deriveParentMapping(Tree<A> aTree, Tree<B> bTree, com.google.common.collect.Multimap<A, B> childMapping) Given a mapping of child nodes, determine which parents may be mapped to each other.static <T> TTreeUtils.findAncestor(Tree<T> tree, T node, Predicate<T> predicate) Find the first ancestor for which the predicate evaluates to truestatic <T> TTreeUtils.firstMultiaryAncestor(Tree<T> tree, T node) Return a node's first ancestor having an arity > 1 null if there is none.static <T> TTreeUtils.getFirstMultiaryAncestor(Tree<T> tree, T node) static <T> voidTreeUtils.getLeafs(Collection<T> result, Tree<T> tree, T node) static <T> List<T> static <T> Set<T> TreeUtils.getParentsOf(Tree<T> tree, Iterable<T> children) Get the set of immediate parents for a given set of childrenstatic <X> List<X> TreeUtils.getUnaryAncestors(X x, Tree<X> tree, Tree<X> multiaryTree) static <T> com.google.common.collect.Multimap<T, T> TreeUtils.groupByParent(Tree<T> tree, Collection<T> nodes, com.google.common.collect.Multimap<T, T> result) TreeUtils.innerNodesPerLevel(Tree<T> tree) For each level, yield the inner nodes The root node will always be part of the list, even if it does not have childrenstatic <T> Stream<T> TreeUtils.leafStream(Tree<T> tree) static <T> longTreeUtils.nodesPerLevel(Tree<T> tree) Returns the set of nodes in each level of the tree The set containing the root will be the first item in the liststatic <T> Set<T> TreeUtils.propagateBottomUpLabel(Tree<T> tree, Predicate<T> predicate) Given a predicate, return the minimum set of nodes, for which all nodes in their subtree satisfy the predicate.static <T> Tree<T> TreeUtils.remapSubTreesToLeafs(Tree<T> tree, Function<? super T, ? extends T> remapFn) Create a new tree object which has certain nodes remapped with *leaf* nodesstatic <T> Tree<T> TreeUtils.removeUnaryNodes(Tree<T> tree) static <T> TTreeUtils.removeUnaryNodes(Tree<T> tree, T node, com.google.common.collect.ListMultimap<T, T> parentToChildren) static <T> Tree<T> static <T> TTreeUtils.replaceNode(Tree<T> tree, T node, T replacement, BiPredicate<? super T, ? super T> isEquiv) static <T> Tree<T> Constructors in org.aksw.commons.collections.trees with parameters of type Tree