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

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

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

origin: google/guava

@Override
public int size() {
 return graph.adjacentNodes(node).size();
}
origin: google/j2objc

@Override
public int size() {
 return graph.adjacentNodes(node).size();
}
origin: google/guava

@Override
public UnmodifiableIterator<EndpointPair<N>> iterator() {
 return Iterators.unmodifiableIterator(
   Iterators.transform(
     graph.adjacentNodes(node).iterator(),
     new Function<N, EndpointPair<N>>() {
      @Override
      public EndpointPair<N> apply(N adjacentNode) {
       return EndpointPair.unordered(node, adjacentNode);
      }
     }));
}
origin: google/guava

@Override
public Set<N> adjacentNodes(N node) {
 return delegate().adjacentNodes(node);
}
origin: wildfly/wildfly

@Override
public int size() {
 return graph.adjacentNodes(node).size();
}
origin: google/j2objc

@Override
public UnmodifiableIterator<EndpointPair<N>> iterator() {
 return Iterators.unmodifiableIterator(
   Iterators.transform(
     graph.adjacentNodes(node).iterator(),
     new Function<N, EndpointPair<N>>() {
      @Override
      public EndpointPair<N> apply(N adjacentNode) {
       return EndpointPair.unordered(node, adjacentNode);
      }
     }));
}
origin: google/j2objc

@Override
public Set<N> adjacentNodes(N node) {
 return delegate().adjacentNodes(node);
}
origin: wildfly/wildfly

@Override
public UnmodifiableIterator<EndpointPair<N>> iterator() {
 return Iterators.unmodifiableIterator(
   Iterators.transform(
     graph.adjacentNodes(node).iterator(),
     new Function<N, EndpointPair<N>>() {
      @Override
      public EndpointPair<N> apply(N adjacentNode) {
       return EndpointPair.unordered(node, adjacentNode);
      }
     }));
}
origin: google/guava

 @Override
 public boolean contains(@Nullable Object obj) {
  if (!(obj instanceof EndpointPair)) {
   return false;
  }
  EndpointPair<?> endpointPair = (EndpointPair<?>) obj;
  if (endpointPair.isOrdered()) {
   return false;
  }
  Set<N> adjacent = graph.adjacentNodes(node);
  Object nodeU = endpointPair.nodeU();
  Object nodeV = endpointPair.nodeV();
  return (node.equals(nodeV) && adjacent.contains(nodeU))
    || (node.equals(nodeU) && adjacent.contains(nodeV));
 }
}
origin: wildfly/wildfly

@Override
public Set<N> adjacentNodes(N node) {
 return delegate().adjacentNodes(node);
}
origin: google/j2objc

 @Override
 public boolean contains(@NullableDecl Object obj) {
  if (!(obj instanceof EndpointPair)) {
   return false;
  }
  EndpointPair<?> endpointPair = (EndpointPair<?>) obj;
  if (endpointPair.isOrdered()) {
   return false;
  }
  Set<N> adjacent = graph.adjacentNodes(node);
  Object nodeU = endpointPair.nodeU();
  Object nodeV = endpointPair.nodeV();
  return (node.equals(nodeV) && adjacent.contains(nodeU))
    || (node.equals(nodeU) && adjacent.contains(nodeV));
 }
}
origin: wildfly/wildfly

 @Override
 public boolean contains(@NullableDecl Object obj) {
  if (!(obj instanceof EndpointPair)) {
   return false;
  }
  EndpointPair<?> endpointPair = (EndpointPair<?>) obj;
  if (endpointPair.isOrdered()) {
   return false;
  }
  Set<N> adjacent = graph.adjacentNodes(node);
  Object nodeU = endpointPair.nodeU();
  Object nodeV = endpointPair.nodeV();
  return (node.equals(nodeV) && adjacent.contains(nodeU))
    || (node.equals(nodeU) && adjacent.contains(nodeV));
 }
}
origin: org.jboss.eap/wildfly-client-all

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

@Override
public int size() {
 return graph.adjacentNodes(node).size();
}
origin: org.jboss.eap/wildfly-client-all

@Override
public UnmodifiableIterator<EndpointPair<N>> iterator() {
 return Iterators.unmodifiableIterator(
   Iterators.transform(
     graph.adjacentNodes(node).iterator(),
     new Function<N, EndpointPair<N>>() {
      @Override
      public EndpointPair<N> apply(N adjacentNode) {
       return EndpointPair.unordered(node, adjacentNode);
      }
     }));
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public UnmodifiableIterator<EndpointPair<N>> iterator() {
 return Iterators.unmodifiableIterator(
   Iterators.transform(
     graph.adjacentNodes(node).iterator(),
     new Function<N, EndpointPair<N>>() {
      @Override
      public EndpointPair<N> apply(N adjacentNode) {
       return EndpointPair.unordered(node, adjacentNode);
      }
     }));
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

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

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

 @Override
 public boolean contains(@Nullable Object obj) {
  if (!(obj instanceof EndpointPair)) {
   return false;
  }
  EndpointPair<?> endpointPair = (EndpointPair<?>) obj;
  if (endpointPair.isOrdered()) {
   return false;
  }
  Set<N> adjacent = graph.adjacentNodes(node);
  Object nodeU = endpointPair.nodeU();
  Object nodeV = endpointPair.nodeV();
  return (node.equals(nodeV) && adjacent.contains(nodeU))
    || (node.equals(nodeU) && adjacent.contains(nodeV));
 }
}
origin: org.jboss.eap/wildfly-client-all

 @Override
 public boolean contains(@NullableDecl Object obj) {
  if (!(obj instanceof EndpointPair)) {
   return false;
  }
  EndpointPair<?> endpointPair = (EndpointPair<?>) obj;
  if (endpointPair.isOrdered()) {
   return false;
  }
  Set<N> adjacent = graph.adjacentNodes(node);
  Object nodeU = endpointPair.nodeU();
  Object nodeV = endpointPair.nodeV();
  return (node.equals(nodeV) && adjacent.contains(nodeU))
    || (node.equals(nodeU) && adjacent.contains(nodeV));
 }
}
com.google.common.graphBaseGraphadjacentNodes

Javadoc

Returns the nodes which have an incident edge in common with node in this graph.

Popular methods of BaseGraph

  • 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
  • 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()
  • 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

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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