Tabnine Logo
BaseGraph.inDegree
Code IndexAdd Tabnine to your IDE (free)

How to use
inDegree
method
in
com.google.common.graph.BaseGraph

Best Java code snippets using com.google.common.graph.BaseGraph.inDegree (Showing top 10 results out of 315)

origin: google/guava

@Override
public int inDegree(N node) {
 return delegate().inDegree(node);
}
origin: google/guava

@Override
public int size() {
 return graph.inDegree(node)
   + graph.outDegree(node)
   - (graph.successors(node).contains(node) ? 1 : 0);
}
origin: google/j2objc

@Override
public int inDegree(N node) {
 return delegate().inDegree(node);
}
origin: wildfly/wildfly

@Override
public int inDegree(N node) {
 return delegate().inDegree(node);
}
origin: google/j2objc

@Override
public int size() {
 return graph.inDegree(node)
   + graph.outDegree(node)
   - (graph.successors(node).contains(node) ? 1 : 0);
}
origin: wildfly/wildfly

@Override
public int size() {
 return graph.inDegree(node)
   + graph.outDegree(node)
   - (graph.successors(node).contains(node) ? 1 : 0);
}
origin: org.jboss.eap/wildfly-client-all

@Override
public int inDegree(N node) {
 return delegate().inDegree(node);
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public int inDegree(N node) {
 return delegate().inDegree(node);
}
origin: org.jboss.eap/wildfly-client-all

@Override
public int size() {
 return graph.inDegree(node)
   + graph.outDegree(node)
   - (graph.successors(node).contains(node) ? 1 : 0);
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public int size() {
 return graph.inDegree(node)
   + graph.outDegree(node)
   - (graph.successors(node).contains(node) ? 1 : 0);
}
com.google.common.graphBaseGraphinDegree

Javadoc

Returns the count of node's incoming edges (equal to predecessors(node).size()) in a directed graph. In an undirected graph, returns the #degree(Object).

If the count is greater than Integer.MAX_VALUE, returns Integer.MAX_VALUE.

Popular methods of BaseGraph

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

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ImageIO (javax.imageio)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • 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