Tabnine Logo
AbstractNetwork.edgesConnecting
Code IndexAdd Tabnine to your IDE (free)

How to use
edgesConnecting
method
in
com.google.common.graph.AbstractNetwork

Best Java code snippets using com.google.common.graph.AbstractNetwork.edgesConnecting (Showing top 17 results out of 315)

origin: google/guava

@Override
public boolean hasEdgeConnecting(N nodeU, N nodeV) {
 return !edgesConnecting(nodeU, nodeV).isEmpty();
}
origin: google/j2objc

@Override
public boolean hasEdgeConnecting(N nodeU, N nodeV) {
 return !edgesConnecting(nodeU, nodeV).isEmpty();
}
origin: google/guava

@Override
public @Nullable E edgeConnectingOrNull(N nodeU, N nodeV) {
 Set<E> edgesConnecting = edgesConnecting(nodeU, nodeV);
 switch (edgesConnecting.size()) {
  case 0:
   return null;
  case 1:
   return edgesConnecting.iterator().next();
  default:
   throw new IllegalArgumentException(String.format(MULTIPLE_EDGES_CONNECTING, nodeU, nodeV));
 }
}
origin: wildfly/wildfly

@Override
public boolean hasEdgeConnecting(N nodeU, N nodeV) {
 return !edgesConnecting(nodeU, nodeV).isEmpty();
}
origin: google/j2objc

@Override
@NullableDecl
public E edgeConnectingOrNull(N nodeU, N nodeV) {
 Set<E> edgesConnecting = edgesConnecting(nodeU, nodeV);
 switch (edgesConnecting.size()) {
  case 0:
   return null;
  case 1:
   return edgesConnecting.iterator().next();
  default:
   throw new IllegalArgumentException(String.format(MULTIPLE_EDGES_CONNECTING, nodeU, nodeV));
 }
}
origin: wildfly/wildfly

@Override
public Optional<E> edgeConnecting(N nodeU, N nodeV) {
 Set<E> edgesConnecting = edgesConnecting(nodeU, nodeV);
 switch (edgesConnecting.size()) {
  case 0:
   return Optional.empty();
  case 1:
   return Optional.of(edgesConnecting.iterator().next());
  default:
   throw new IllegalArgumentException(String.format(MULTIPLE_EDGES_CONNECTING, nodeU, nodeV));
 }
}
origin: google/guava

@Override
public boolean hasEdgeConnecting(EndpointPair<N> endpoints) {
 checkNotNull(endpoints);
 if (!isOrderingCompatible(endpoints)) {
  return false;
 }
 return !edgesConnecting(endpoints.nodeU(), endpoints.nodeV()).isEmpty();
}
origin: google/guava

@Override
public int degree(N node) {
 if (isDirected()) {
  return IntMath.saturatedAdd(inEdges(node).size(), outEdges(node).size());
 } else {
  return IntMath.saturatedAdd(incidentEdges(node).size(), edgesConnecting(node, node).size());
 }
}
origin: google/guava

@Override
public Set<E> edgesConnecting(EndpointPair<N> endpoints) {
 validateEndpoints(endpoints);
 return edgesConnecting(endpoints.nodeU(), endpoints.nodeV());
}
origin: google/j2objc

@Override
public int degree(N node) {
 if (isDirected()) {
  return IntMath.saturatedAdd(inEdges(node).size(), outEdges(node).size());
 } else {
  return IntMath.saturatedAdd(incidentEdges(node).size(), edgesConnecting(node, node).size());
 }
}
origin: wildfly/wildfly

@Override
public int degree(N node) {
 if (isDirected()) {
  return IntMath.saturatedAdd(inEdges(node).size(), outEdges(node).size());
 } else {
  return IntMath.saturatedAdd(incidentEdges(node).size(), edgesConnecting(node, node).size());
 }
}
origin: org.jboss.eap/wildfly-client-all

@Override
public boolean hasEdgeConnecting(N nodeU, N nodeV) {
 return !edgesConnecting(nodeU, nodeV).isEmpty();
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public boolean hasEdgeConnecting(N nodeU, N nodeV) {
 return !edgesConnecting(nodeU, nodeV).isEmpty();
}
origin: org.jboss.eap/wildfly-client-all

@Override
public Optional<E> edgeConnecting(N nodeU, N nodeV) {
 Set<E> edgesConnecting = edgesConnecting(nodeU, nodeV);
 switch (edgesConnecting.size()) {
  case 0:
   return Optional.empty();
  case 1:
   return Optional.of(edgesConnecting.iterator().next());
  default:
   throw new IllegalArgumentException(String.format(MULTIPLE_EDGES_CONNECTING, nodeU, nodeV));
 }
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public Optional<E> edgeConnecting(N nodeU, N nodeV) {
 Set<E> edgesConnecting = edgesConnecting(nodeU, nodeV);
 switch (edgesConnecting.size()) {
  case 0:
   return Optional.empty();
  case 1:
   return Optional.of(edgesConnecting.iterator().next());
  default:
   throw new IllegalArgumentException(String.format(MULTIPLE_EDGES_CONNECTING, nodeU, nodeV));
 }
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public int degree(N node) {
 if (isDirected()) {
  return IntMath.saturatedAdd(inEdges(node).size(), outEdges(node).size());
 } else {
  return IntMath.saturatedAdd(incidentEdges(node).size(), edgesConnecting(node, node).size());
 }
}
origin: org.jboss.eap/wildfly-client-all

@Override
public int degree(N node) {
 if (isDirected()) {
  return IntMath.saturatedAdd(inEdges(node).size(), outEdges(node).size());
 } else {
  return IntMath.saturatedAdd(incidentEdges(node).size(), edgesConnecting(node, node).size());
 }
}
com.google.common.graphAbstractNetworkedgesConnecting

Popular methods of AbstractNetwork

  • adjacentNodes
  • allowsParallelEdges
  • allowsSelfLoops
  • connectedPredicate
  • degree
  • edgeIncidentNodesMap
  • inEdges
  • incidentEdges
  • incidentNodes
  • isDirected
  • nodeOrder
  • nodes
  • nodeOrder,
  • nodes,
  • outEdges,
  • predecessors,
  • successors,
  • edgeConnecting,
  • edgeConnectingOrNull,
  • isOrderingCompatible,
  • validateEndpoints

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JFileChooser (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best plugins for Eclipse
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