Tabnine Logo
NetworkConnections.adjacentNode
Code IndexAdd Tabnine to your IDE (free)

How to use
adjacentNode
method
in
com.google.common.graph.NetworkConnections

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

origin: google/guava

@Override
public EndpointPair<N> incidentNodes(E edge) {
 N nodeU = checkedReferenceNode(edge);
 N nodeV = nodeConnections.get(nodeU).adjacentNode(edge);
 return EndpointPair.of(this, nodeU, nodeV);
}
origin: google/j2objc

@Override
public EndpointPair<N> incidentNodes(E edge) {
 N nodeU = checkedReferenceNode(edge);
 N nodeV = nodeConnections.get(nodeU).adjacentNode(edge);
 return EndpointPair.of(this, nodeU, nodeV);
}
origin: google/guava

@Override
@CanIgnoreReturnValue
public boolean removeEdge(E edge) {
 checkNotNull(edge, "edge");
 N nodeU = edgeToReferenceNode.get(edge);
 if (nodeU == null) {
  return false;
 }
 NetworkConnections<N, E> connectionsU = nodeConnections.get(nodeU);
 N nodeV = connectionsU.adjacentNode(edge);
 NetworkConnections<N, E> connectionsV = nodeConnections.get(nodeV);
 connectionsU.removeOutEdge(edge);
 connectionsV.removeInEdge(edge, allowsSelfLoops() && nodeU.equals(nodeV));
 edgeToReferenceNode.remove(edge);
 return true;
}
origin: wildfly/wildfly

@Override
public EndpointPair<N> incidentNodes(E edge) {
 N nodeU = checkedReferenceNode(edge);
 N nodeV = nodeConnections.get(nodeU).adjacentNode(edge);
 return EndpointPair.of(this, nodeU, nodeV);
}
origin: google/j2objc

@Override
@CanIgnoreReturnValue
public boolean removeEdge(E edge) {
 checkNotNull(edge, "edge");
 N nodeU = edgeToReferenceNode.get(edge);
 if (nodeU == null) {
  return false;
 }
 NetworkConnections<N, E> connectionsU = nodeConnections.get(nodeU);
 N nodeV = connectionsU.adjacentNode(edge);
 NetworkConnections<N, E> connectionsV = nodeConnections.get(nodeV);
 connectionsU.removeOutEdge(edge);
 connectionsV.removeInEdge(edge, allowsSelfLoops() && nodeU.equals(nodeV));
 edgeToReferenceNode.remove(edge);
 return true;
}
origin: wildfly/wildfly

@Override
@CanIgnoreReturnValue
public boolean removeEdge(E edge) {
 checkNotNull(edge, "edge");
 N nodeU = edgeToReferenceNode.get(edge);
 if (nodeU == null) {
  return false;
 }
 NetworkConnections<N, E> connectionsU = nodeConnections.get(nodeU);
 N nodeV = connectionsU.adjacentNode(edge);
 NetworkConnections<N, E> connectionsV = nodeConnections.get(nodeV);
 connectionsU.removeOutEdge(edge);
 connectionsV.removeInEdge(edge, allowsSelfLoops() && nodeU.equals(nodeV));
 edgeToReferenceNode.remove(edge);
 return true;
}
origin: org.jboss.eap/wildfly-client-all

@Override
public EndpointPair<N> incidentNodes(E edge) {
 N nodeU = checkedReferenceNode(edge);
 N nodeV = nodeConnections.get(nodeU).adjacentNode(edge);
 return EndpointPair.of(this, nodeU, nodeV);
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public EndpointPair<N> incidentNodes(E edge) {
 N nodeU = checkedReferenceNode(edge);
 N nodeV = nodeConnections.get(nodeU).adjacentNode(edge);
 return EndpointPair.of(this, nodeU, nodeV);
}
origin: org.jboss.eap/wildfly-client-all

@Override
@CanIgnoreReturnValue
public boolean removeEdge(E edge) {
 checkNotNull(edge, "edge");
 N nodeU = edgeToReferenceNode.get(edge);
 if (nodeU == null) {
  return false;
 }
 NetworkConnections<N, E> connectionsU = nodeConnections.get(nodeU);
 N nodeV = connectionsU.adjacentNode(edge);
 NetworkConnections<N, E> connectionsV = nodeConnections.get(nodeV);
 connectionsU.removeOutEdge(edge);
 connectionsV.removeInEdge(edge, allowsSelfLoops() && nodeU.equals(nodeV));
 edgeToReferenceNode.remove(edge);
 return true;
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
@CanIgnoreReturnValue
public boolean removeEdge(E edge) {
 checkNotNull(edge, "edge");
 N nodeU = edgeToReferenceNode.get(edge);
 if (nodeU == null) {
  return false;
 }
 NetworkConnections<N, E> connectionsU = nodeConnections.get(nodeU);
 N nodeV = connectionsU.adjacentNode(edge);
 NetworkConnections<N, E> connectionsV = nodeConnections.get(nodeV);
 connectionsU.removeOutEdge(edge);
 connectionsV.removeInEdge(edge, allowsSelfLoops() && nodeU.equals(nodeV));
 edgeToReferenceNode.remove(edge);
 return true;
}
com.google.common.graphNetworkConnectionsadjacentNode

Javadoc

Returns the node that is adjacent to the origin node along edge.

In the directed case, edge is assumed to be an outgoing edge.

Popular methods of NetworkConnections

  • addInEdge
    Add edge to the set of incoming edges. Implicitly adds node as a predecessor.
  • addOutEdge
    Add edge to the set of outgoing edges. Implicitly adds node as a successor.
  • adjacentNodes
  • edgesConnecting
    Returns the set of edges connecting the origin node to node. For networks without parallel edges, th
  • inEdges
  • incidentEdges
  • outEdges
  • predecessors
  • removeInEdge
    Remove edge from the set of incoming edges. Returns the former predecessor node. In the undirected c
  • removeOutEdge
    Remove edge from the set of outgoing edges. Returns the former successor node.
  • successors
  • successors

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Sublime Text plugins
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