Tabnine Logo
ConfigurableMutableValueGraph.addNodeInternal
Code IndexAdd Tabnine to your IDE (free)

How to use
addNodeInternal
method
in
com.google.common.graph.ConfigurableMutableValueGraph

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

origin: google/guava

@Override
@CanIgnoreReturnValue
public boolean addNode(N node) {
 checkNotNull(node, "node");
 if (containsNode(node)) {
  return false;
 }
 addNodeInternal(node);
 return true;
}
origin: google/j2objc

@Override
@CanIgnoreReturnValue
public boolean addNode(N node) {
 checkNotNull(node, "node");
 if (containsNode(node)) {
  return false;
 }
 addNodeInternal(node);
 return true;
}
origin: google/guava

@Override
@CanIgnoreReturnValue
public V putEdgeValue(N nodeU, N nodeV, V value) {
 checkNotNull(nodeU, "nodeU");
 checkNotNull(nodeV, "nodeV");
 checkNotNull(value, "value");
 if (!allowsSelfLoops()) {
  checkArgument(!nodeU.equals(nodeV), SELF_LOOPS_NOT_ALLOWED, nodeU);
 }
 GraphConnections<N, V> connectionsU = nodeConnections.get(nodeU);
 if (connectionsU == null) {
  connectionsU = addNodeInternal(nodeU);
 }
 V previousValue = connectionsU.addSuccessor(nodeV, value);
 GraphConnections<N, V> connectionsV = nodeConnections.get(nodeV);
 if (connectionsV == null) {
  connectionsV = addNodeInternal(nodeV);
 }
 connectionsV.addPredecessor(nodeU, value);
 if (previousValue == null) {
  checkPositive(++edgeCount);
 }
 return previousValue;
}
origin: wildfly/wildfly

@Override
@CanIgnoreReturnValue
public boolean addNode(N node) {
 checkNotNull(node, "node");
 if (containsNode(node)) {
  return false;
 }
 addNodeInternal(node);
 return true;
}
origin: google/j2objc

@Override
@CanIgnoreReturnValue
public V putEdgeValue(N nodeU, N nodeV, V value) {
 checkNotNull(nodeU, "nodeU");
 checkNotNull(nodeV, "nodeV");
 checkNotNull(value, "value");
 if (!allowsSelfLoops()) {
  checkArgument(!nodeU.equals(nodeV), SELF_LOOPS_NOT_ALLOWED, nodeU);
 }
 GraphConnections<N, V> connectionsU = nodeConnections.get(nodeU);
 if (connectionsU == null) {
  connectionsU = addNodeInternal(nodeU);
 }
 V previousValue = connectionsU.addSuccessor(nodeV, value);
 GraphConnections<N, V> connectionsV = nodeConnections.get(nodeV);
 if (connectionsV == null) {
  connectionsV = addNodeInternal(nodeV);
 }
 connectionsV.addPredecessor(nodeU, value);
 if (previousValue == null) {
  checkPositive(++edgeCount);
 }
 return previousValue;
}
origin: wildfly/wildfly

@Override
@CanIgnoreReturnValue
public V putEdgeValue(N nodeU, N nodeV, V value) {
 checkNotNull(nodeU, "nodeU");
 checkNotNull(nodeV, "nodeV");
 checkNotNull(value, "value");
 if (!allowsSelfLoops()) {
  checkArgument(!nodeU.equals(nodeV), SELF_LOOPS_NOT_ALLOWED, nodeU);
 }
 GraphConnections<N, V> connectionsU = nodeConnections.get(nodeU);
 if (connectionsU == null) {
  connectionsU = addNodeInternal(nodeU);
 }
 V previousValue = connectionsU.addSuccessor(nodeV, value);
 GraphConnections<N, V> connectionsV = nodeConnections.get(nodeV);
 if (connectionsV == null) {
  connectionsV = addNodeInternal(nodeV);
 }
 connectionsV.addPredecessor(nodeU, value);
 if (previousValue == null) {
  checkPositive(++edgeCount);
 }
 return previousValue;
}
origin: org.jboss.eap/wildfly-client-all

@Override
@CanIgnoreReturnValue
public boolean addNode(N node) {
 checkNotNull(node, "node");
 if (containsNode(node)) {
  return false;
 }
 addNodeInternal(node);
 return true;
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
@CanIgnoreReturnValue
public boolean addNode(N node) {
 checkNotNull(node, "node");
 if (containsNode(node)) {
  return false;
 }
 addNodeInternal(node);
 return true;
}
origin: org.jboss.eap/wildfly-client-all

@Override
@CanIgnoreReturnValue
public V putEdgeValue(N nodeU, N nodeV, V value) {
 checkNotNull(nodeU, "nodeU");
 checkNotNull(nodeV, "nodeV");
 checkNotNull(value, "value");
 if (!allowsSelfLoops()) {
  checkArgument(!nodeU.equals(nodeV), SELF_LOOPS_NOT_ALLOWED, nodeU);
 }
 GraphConnections<N, V> connectionsU = nodeConnections.get(nodeU);
 if (connectionsU == null) {
  connectionsU = addNodeInternal(nodeU);
 }
 V previousValue = connectionsU.addSuccessor(nodeV, value);
 GraphConnections<N, V> connectionsV = nodeConnections.get(nodeV);
 if (connectionsV == null) {
  connectionsV = addNodeInternal(nodeV);
 }
 connectionsV.addPredecessor(nodeU, value);
 if (previousValue == null) {
  checkPositive(++edgeCount);
 }
 return previousValue;
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
@CanIgnoreReturnValue
public V putEdgeValue(N nodeU, N nodeV, V value) {
 checkNotNull(nodeU, "nodeU");
 checkNotNull(nodeV, "nodeV");
 checkNotNull(value, "value");
 if (!allowsSelfLoops()) {
  checkArgument(!nodeU.equals(nodeV), SELF_LOOPS_NOT_ALLOWED, nodeU);
 }
 GraphConnections<N, V> connectionsU = nodeConnections.get(nodeU);
 if (connectionsU == null) {
  connectionsU = addNodeInternal(nodeU);
 }
 V previousValue = connectionsU.addSuccessor(nodeV, value);
 GraphConnections<N, V> connectionsV = nodeConnections.get(nodeV);
 if (connectionsV == null) {
  connectionsV = addNodeInternal(nodeV);
 }
 connectionsV.addPredecessor(nodeU, value);
 if (previousValue == null) {
  checkPositive(++edgeCount);
 }
 return previousValue;
}
com.google.common.graphConfigurableMutableValueGraphaddNodeInternal

Javadoc

Adds node to the graph and returns the associated GraphConnections.

Popular methods of ConfigurableMutableValueGraph

  • <init>
    Constructs a mutable graph with the properties specified in builder.
  • allowsSelfLoops
  • containsNode
  • isDirected
  • newConnections
  • putEdgeValue
  • removeEdge
  • validateEndpoints

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • 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