Codota Logo
DAGNode.singleton
Code IndexAdd Codota to your IDE (free)

How to use
singleton
method
in
org.grouplens.grapht.graph.DAGNode

Best Java code snippets using org.grouplens.grapht.graph.DAGNode.singleton (Showing top 3 results out of 315)

  • Common ways to obtain DAGNode
private void myMethod () {
DAGNode d =
  • Codota IconDAGNodeBuilder dAGNodeBuilder;dAGNodeBuilder.build()
  • Codota IconRecommenderGraphBuilder recommenderGraphBuilder;recommenderGraphBuilder.buildGraph()
  • Codota IconRecommenderInstantiator recommenderInstantiator;recommenderInstantiator.instantiate()
  • Smart code suggestions by Codota
}
origin: org.grouplens.grapht/grapht

/**
 * Get a singleton root node for a dependency graph.
 * @return A root node for a dependency graph with no resolved objects.
 */
public static DAGNode<Component,Dependency> rootNode() {
  return DAGNode.singleton(ROOT_SATISFACTION);
}
origin: org.grouplens.grapht/grapht

/**
 * Create a DependencySolver that uses the given functions, and max
 * depth of the dependency graph.
 * 
 * @param bindFunctions The binding functions that control desire bindings
 * @param maxDepth A maximum depth of the graph before it's determined that
 *            a cycle exists
 * @throws IllegalArgumentException if maxDepth is less than 1
 * @throws NullPointerException if bindFunctions is null
 */
DependencySolver(List<BindingFunction> bindFunctions,
         List<BindingFunction> triggers,
         CachePolicy defaultPolicy, int maxDepth) {
  Preconditions.notNull("bindFunctions", bindFunctions);
  Preconditions.notNull("defaultPolicy", defaultPolicy);
  if (maxDepth <= 0) {
    throw new IllegalArgumentException("Max depth must be at least 1");
  }
  
  this.functions = new ArrayList<BindingFunction>(bindFunctions);
  this.triggerFunctions = new ArrayList<BindingFunction>(triggers);
  this.maxDepth = maxDepth;
  this.defaultPolicy = defaultPolicy;
  
  graph = DAGNode.singleton(ROOT_SATISFACTION);
  backEdges = HashMultimap.create();
  mergePool = MergePool.create();
  logger.info("DependencySolver created, max depth: {}", maxDepth);
}
origin: org.grouplens.grapht/grapht

  node = DAGNode.singleton(result.makeSatisfaction());
  deferQueue.add(new Deferral(node, newContext));
} else {
org.grouplens.grapht.graphDAGNodesingleton

Javadoc

Create a new DAG node with no outgoing edges.

Popular methods of DAGNode

  • getLabel
    Get the label for this node.
  • getOutgoingEdges
    Get the outgoing edges of this node.
  • getReachableNodes
  • newBuilder
    Construct a new DAG node builder.
  • getOutgoingEdgeWithLabel
  • getSortedNodes
    Topographical sort all nodes reachable from the given root node. Nodes that are farther away, or mor
  • replaceNode
    Replace one node with another in this graph. All edges referencing node are replaced with edges refe
  • breadthFirstEdges
  • <init>
    Construct a new DAG node.
  • copyBuilder
    Create a new builder initialized to build a copy of the specified node.
  • getAdjacentNodes
    Get the nodes that are adjacent to this node (only considering outgoing edges).
  • getIncomingEdgeMap
    Get a multimap of incoming edges. For each node reachable from this node, the map will contain each
  • getAdjacentNodes,
  • getIncomingEdgeMap,
  • initializeCaches,
  • sortVisit,
  • transformEdges

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JTable (javax.swing)
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