Tabnine Logo
Traverser$TreeTraverser
Code IndexAdd Tabnine to your IDE (free)

How to use
Traverser$TreeTraverser
in
com.google.common.graph

Best Java code snippets using com.google.common.graph.Traverser$TreeTraverser (Showing top 20 results out of 315)

origin: wildfly/wildfly

@Override
public Iterable<N> breadthFirst(final N startNode) {
 checkNotNull(startNode);
 return breadthFirst(ImmutableSet.of(startNode));
}
origin: wildfly/wildfly

@Override
public Iterable<N> depthFirstPostOrder(final Iterable<? extends N> startNodes) {
 checkNotNull(startNodes);
 if (Iterables.isEmpty(startNodes)) {
  return ImmutableSet.of();
 }
 for (N startNode : startNodes) {
  checkThatNodeIsInTree(startNode);
 }
 return new Iterable<N>() {
  @Override
  public Iterator<N> iterator() {
   return new DepthFirstPostOrderIterator(startNodes);
  }
 };
}
origin: wildfly/wildfly

@Override
public Iterable<N> depthFirstPostOrder(final N startNode) {
 checkNotNull(startNode);
 return depthFirstPostOrder(ImmutableSet.of(startNode));
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

 checkArgument(((Network<?, ?>) tree).isDirected(), "Undirected networks can never be trees.");
return new TreeTraverser<>(tree);
origin: org.jboss.eap/wildfly-client-all

 checkArgument(((Network<?, ?>) tree).isDirected(), "Undirected networks can never be trees.");
return new TreeTraverser<>(tree);
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public Iterable<N> depthFirstPreOrder(final Iterable<? extends N> startNodes) {
 checkNotNull(startNodes);
 if (Iterables.isEmpty(startNodes)) {
  return ImmutableSet.of();
 }
 for (N node : startNodes) {
  checkThatNodeIsInTree(node);
 }
 return new Iterable<N>() {
  @Override
  public Iterator<N> iterator() {
   return new DepthFirstPreOrderIterator(startNodes);
  }
 };
}
origin: org.jboss.eap/wildfly-client-all

@Override
public Iterable<N> depthFirstPostOrder(final Iterable<? extends N> startNodes) {
 checkNotNull(startNodes);
 if (Iterables.isEmpty(startNodes)) {
  return ImmutableSet.of();
 }
 for (N startNode : startNodes) {
  checkThatNodeIsInTree(startNode);
 }
 return new Iterable<N>() {
  @Override
  public Iterator<N> iterator() {
   return new DepthFirstPostOrderIterator(startNodes);
  }
 };
}
origin: org.jboss.eap/wildfly-client-all

@Override
public Iterable<N> breadthFirst(final Iterable<? extends N> startNodes) {
 checkNotNull(startNodes);
 if (Iterables.isEmpty(startNodes)) {
  return ImmutableSet.of();
 }
 for (N startNode : startNodes) {
  checkThatNodeIsInTree(startNode);
 }
 return new Iterable<N>() {
  @Override
  public Iterator<N> iterator() {
   return new BreadthFirstIterator(startNodes);
  }
 };
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public Iterable<N> breadthFirst(final Iterable<? extends N> startNodes) {
 checkNotNull(startNodes);
 if (Iterables.isEmpty(startNodes)) {
  return ImmutableSet.of();
 }
 for (N startNode : startNodes) {
  checkThatNodeIsInTree(startNode);
 }
 return new Iterable<N>() {
  @Override
  public Iterator<N> iterator() {
   return new BreadthFirstIterator(startNodes);
  }
 };
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public Iterable<N> depthFirstPostOrder(final Iterable<? extends N> startNodes) {
 checkNotNull(startNodes);
 if (Iterables.isEmpty(startNodes)) {
  return ImmutableSet.of();
 }
 for (N startNode : startNodes) {
  checkThatNodeIsInTree(startNode);
 }
 return new Iterable<N>() {
  @Override
  public Iterator<N> iterator() {
   return new DepthFirstPostOrderIterator(startNodes);
  }
 };
}
origin: org.jboss.eap/wildfly-client-all

@Override
public Iterable<N> depthFirstPreOrder(final Iterable<? extends N> startNodes) {
 checkNotNull(startNodes);
 if (Iterables.isEmpty(startNodes)) {
  return ImmutableSet.of();
 }
 for (N node : startNodes) {
  checkThatNodeIsInTree(node);
 }
 return new Iterable<N>() {
  @Override
  public Iterator<N> iterator() {
   return new DepthFirstPreOrderIterator(startNodes);
  }
 };
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public Iterable<N> breadthFirst(final N startNode) {
 checkNotNull(startNode);
 return breadthFirst(ImmutableSet.of(startNode));
}
origin: org.jboss.eap/wildfly-client-all

@Override
public Iterable<N> depthFirstPreOrder(final N startNode) {
 checkNotNull(startNode);
 return depthFirstPreOrder(ImmutableSet.of(startNode));
}
origin: org.jboss.eap/wildfly-client-all

@Override
public Iterable<N> breadthFirst(final N startNode) {
 checkNotNull(startNode);
 return breadthFirst(ImmutableSet.of(startNode));
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public Iterable<N> depthFirstPostOrder(final N startNode) {
 checkNotNull(startNode);
 return depthFirstPostOrder(ImmutableSet.of(startNode));
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public Iterable<N> depthFirstPreOrder(final N startNode) {
 checkNotNull(startNode);
 return depthFirstPreOrder(ImmutableSet.of(startNode));
}
origin: org.jboss.eap/wildfly-client-all

@Override
public Iterable<N> depthFirstPostOrder(final N startNode) {
 checkNotNull(startNode);
 return depthFirstPostOrder(ImmutableSet.of(startNode));
}
origin: wildfly/wildfly

 checkArgument(((Network<?, ?>) tree).isDirected(), "Undirected networks can never be trees.");
return new TreeTraverser<>(tree);
origin: google/j2objc

 checkArgument(((Network<?, ?>) tree).isDirected(), "Undirected networks can never be trees.");
return new TreeTraverser<>(tree);
origin: wildfly/wildfly

@Override
public Iterable<N> depthFirstPreOrder(final Iterable<? extends N> startNodes) {
 checkNotNull(startNodes);
 if (Iterables.isEmpty(startNodes)) {
  return ImmutableSet.of();
 }
 for (N node : startNodes) {
  checkThatNodeIsInTree(node);
 }
 return new Iterable<N>() {
  @Override
  public Iterator<N> iterator() {
   return new DepthFirstPreOrderIterator(startNodes);
  }
 };
}
com.google.common.graphTraverser$TreeTraverser

Most used methods

  • <init>
  • breadthFirst
  • checkThatNodeIsInTree
  • depthFirstPostOrder
  • depthFirstPreOrder

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top Sublime Text plugins
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