Tabnine Logo
ValueGraph.nodeOrder
Code IndexAdd Tabnine to your IDE (free)

How to use
nodeOrder
method
in
com.google.common.graph.ValueGraph

Best Java code snippets using com.google.common.graph.ValueGraph.nodeOrder (Showing top 12 results out of 315)

origin: google/guava

@Override
public ElementOrder<N> nodeOrder() {
 return delegate().nodeOrder();
}
origin: google/j2objc

@Override
public ElementOrder<N> nodeOrder() {
 return delegate().nodeOrder();
}
origin: wildfly/wildfly

@Override
public ElementOrder<N> nodeOrder() {
 return delegate().nodeOrder();
}
origin: google/guava

static void assertStronglyEquivalent(ValueGraph<?, ?> graphA, ValueGraph<?, ?> graphB) {
 // Properties not covered by equals()
 assertThat(graphA.allowsSelfLoops()).isEqualTo(graphB.allowsSelfLoops());
 assertThat(graphA.nodeOrder()).isEqualTo(graphB.nodeOrder());
 assertThat(graphA).isEqualTo(graphB);
}
origin: google/guava

/**
 * Returns a {@link ValueGraphBuilder} initialized with all properties queryable from {@code
 * graph}.
 *
 * <p>The "queryable" properties are those that are exposed through the {@link ValueGraph}
 * interface, such as {@link ValueGraph#isDirected()}. Other properties, such as {@link
 * #expectedNodeCount(int)}, are not set in the new builder.
 */
public static <N, V> ValueGraphBuilder<N, V> from(ValueGraph<N, V> graph) {
 return new ValueGraphBuilder<N, V>(graph.isDirected())
   .allowsSelfLoops(graph.allowsSelfLoops())
   .nodeOrder(graph.nodeOrder());
}
origin: google/j2objc

/**
 * Returns a {@link ValueGraphBuilder} initialized with all properties queryable from {@code
 * graph}.
 *
 * <p>The "queryable" properties are those that are exposed through the {@link ValueGraph}
 * interface, such as {@link ValueGraph#isDirected()}. Other properties, such as {@link
 * #expectedNodeCount(int)}, are not set in the new builder.
 */
public static <N, V> ValueGraphBuilder<N, V> from(ValueGraph<N, V> graph) {
 return new ValueGraphBuilder<N, V>(graph.isDirected())
   .allowsSelfLoops(graph.allowsSelfLoops())
   .nodeOrder(graph.nodeOrder());
}
origin: wildfly/wildfly

/**
 * Returns a {@link ValueGraphBuilder} initialized with all properties queryable from {@code
 * graph}.
 *
 * <p>The "queryable" properties are those that are exposed through the {@link ValueGraph}
 * interface, such as {@link ValueGraph#isDirected()}. Other properties, such as {@link
 * #expectedNodeCount(int)}, are not set in the new builder.
 */
public static <N, V> ValueGraphBuilder<N, V> from(ValueGraph<N, V> graph) {
 return new ValueGraphBuilder<N, V>(graph.isDirected())
   .allowsSelfLoops(graph.allowsSelfLoops())
   .nodeOrder(graph.nodeOrder());
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public ElementOrder<N> nodeOrder() {
 return delegate().nodeOrder();
}
origin: org.jboss.eap/wildfly-client-all

@Override
public ElementOrder<N> nodeOrder() {
 return delegate().nodeOrder();
}
origin: com.google.guava/guava-tests

static void assertStronglyEquivalent(ValueGraph<?, ?> graphA, ValueGraph<?, ?> graphB) {
 // Properties not covered by equals()
 assertThat(graphA.allowsSelfLoops()).isEqualTo(graphB.allowsSelfLoops());
 assertThat(graphA.nodeOrder()).isEqualTo(graphB.nodeOrder());
 assertThat(graphA).isEqualTo(graphB);
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Returns a {@link ValueGraphBuilder} initialized with all properties queryable from {@code
 * graph}.
 *
 * <p>The "queryable" properties are those that are exposed through the {@link ValueGraph}
 * interface, such as {@link ValueGraph#isDirected()}. Other properties, such as {@link
 * #expectedNodeCount(int)}, are not set in the new builder.
 */
public static <N, V> ValueGraphBuilder<N, V> from(ValueGraph<N, V> graph) {
 return new ValueGraphBuilder<N, V>(graph.isDirected())
   .allowsSelfLoops(graph.allowsSelfLoops())
   .nodeOrder(graph.nodeOrder());
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

/**
 * Returns a {@link ValueGraphBuilder} initialized with all properties queryable from {@code
 * graph}.
 *
 * <p>The "queryable" properties are those that are exposed through the {@link ValueGraph}
 * interface, such as {@link ValueGraph#isDirected()}. Other properties, such as {@link
 * #expectedNodeCount(int)}, are not set in the new builder.
 */
public static <N, V> ValueGraphBuilder<N, V> from(ValueGraph<N, V> graph) {
 return new ValueGraphBuilder<N, V>(graph.isDirected())
   .allowsSelfLoops(graph.allowsSelfLoops())
   .nodeOrder(graph.nodeOrder());
}
com.google.common.graphValueGraphnodeOrder

Javadoc

Returns the order of iteration for the elements of #nodes().

Popular methods of ValueGraph

  • nodes
    Returns all nodes in this graph, in the order specified by #nodeOrder().
  • adjacentNodes
    Returns the nodes which have an incident edge in common with node in this graph.
  • edgeValue
    Returns the value of the edge connecting nodeU to nodeV, if one is present; otherwise, returns Optio
  • edges
    Returns all edges in this graph.
  • allowsSelfLoops
    Returns true if this graph allows self-loops (edges that connect a node to itself). Attempting to ad
  • outDegree
    Returns the count of node's outgoing edges (equal to successors(node).size()) in a directed graph. I
  • degree
    Returns the count of node's incident edges, counting self-loops twice (equivalently, the number of t
  • edgeValueOrDefault
    Returns the value of the edge connecting nodeU to nodeV, if one is present; otherwise, returns defau
  • inDegree
    Returns the count of node's incoming edges (equal to predecessors(node).size()) in a directed graph.
  • isDirected
    Returns true if the edges in this graph are directed. Directed edges connect a EndpointPair#source()
  • hasEdgeConnecting
    Returns true if there is an edge directly connecting nodeU to nodeV. This is equivalent to nodes().c
  • predecessors
  • hasEdgeConnecting,
  • predecessors,
  • successors,
  • asGraph,
  • equals,
  • incidentEdges

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • JTextField (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • CodeWhisperer alternatives
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