Tabnine Logo
DAGNode.getSortedNodes
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: lenskit/lenskit

LinkedHashSet<DAGNode<Component, Dependency>> shared = Sets.newLinkedHashSet();
graph.getSortedNodes()
   .stream()
   .filter(GraphtUtils::isShareable)
origin: org.lenskit/lenskit-core

LinkedHashSet<DAGNode<Component, Dependency>> shared = Sets.newLinkedHashSet();
graph.getSortedNodes()
   .stream()
   .filter(GraphtUtils::isShareable)
origin: org.grouplens.grapht/grapht

List<DAGNode<V, E>> sorted = graph.getSortedNodes();
org.grouplens.grapht.graphDAGNodegetSortedNodes

Javadoc

Topographical sort all nodes reachable from the given root node. Nodes that are farther away, or more connected, are at the beginning of the list.

Nodes in the graph that are not connected to the root will not appear in the returned list.

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
  • 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
  • initializeCaches
    Initialize caches for traversing this node.
  • getIncomingEdgeMap,
  • initializeCaches,
  • singleton,
  • sortVisit,
  • transformEdges

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JFileChooser (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • 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