Tabnine Logo
ValueGraph.hasEdgeConnecting
Code IndexAdd Tabnine to your IDE (free)

How to use
hasEdgeConnecting
method
in
com.google.common.graph.ValueGraph

Best Java code snippets using com.google.common.graph.ValueGraph.hasEdgeConnecting (Showing top 15 results out of 315)

origin: google/guava

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

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

@Override
public boolean hasEdgeConnecting(EndpointPair<N> endpoints) {
 return delegate().hasEdgeConnecting(endpoints);
}
origin: google/j2objc

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

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

@Override
public boolean hasEdgeConnecting(EndpointPair<N> endpoints) {
 return delegate().hasEdgeConnecting(transpose(endpoints));
}
origin: wildfly/wildfly

@Override
public boolean hasEdgeConnecting(N nodeU, N nodeV) {
 return delegate().hasEdgeConnecting(nodeU, nodeV);
}
origin: wildfly/wildfly

@Override
public boolean hasEdgeConnecting(N nodeU, N nodeV) {
 return delegate().hasEdgeConnecting(nodeV, nodeU); // transpose
}
origin: com.io7m.jgrapht/jgrapht-guava

@Override
public EndpointPair<V> getEdge(V sourceVertex, V targetVertex)
{
  if (sourceVertex == null || targetVertex == null) {
    return null;
  } else if (!valueGraph.hasEdgeConnecting(sourceVertex, targetVertex)) {
    return null;
  } else {
    return createEdge(sourceVertex, targetVertex);
  }
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

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

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

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

@Override
public boolean hasEdgeConnecting(N nodeU, N nodeV) {
 return delegate().hasEdgeConnecting(nodeV, nodeU); // transpose
}
origin: com.io7m.jgrapht/jgrapht-guava

@Override
public Set<EndpointPair<V>> getAllEdges(V sourceVertex, V targetVertex)
{
  if (sourceVertex == null || targetVertex == null
    || !valueGraph.nodes().contains(sourceVertex)
    || !valueGraph.nodes().contains(targetVertex))
  {
    return null;
  } else if (!valueGraph.hasEdgeConnecting(sourceVertex, targetVertex)) {
    return Collections.emptySet();
  } else {
    return Collections.singleton(createEdge(sourceVertex, targetVertex));
  }
}
origin: com.io7m.jgrapht/jgrapht-guava

@Override
public double getEdgeWeight(EndpointPair<V> e)
{
  if (e == null) {
    throw new NullPointerException();
  } else if (!valueGraph.hasEdgeConnecting(e.nodeU(), e.nodeV())) {
    throw new IllegalArgumentException("no such edge in graph: " + e.toString());
  } else {
    return valueGraph
      .edgeValue(e.nodeU(), e.nodeV()).map(valueConverter::applyAsDouble)
      .orElse(Graph.DEFAULT_EDGE_WEIGHT);
  }
}
com.google.common.graphValueGraphhasEdgeConnecting

Javadoc

Returns true if there is an edge that directly connects endpoints (in the order, if any, specified by endpoints). This is equivalent to edges().contains(endpoints).

Unlike the other EndpointPair-accepting methods, this method does not throw if the endpoints are unordered and the graph is directed; it simply returns false. This is for consistency with the behavior of Collection#contains(Object) (which does not generally throw if the object cannot be present in the collection), and the desire to have this method's behavior be compatible with edges().contains(endpoints).

Popular methods of ValueGraph

  • nodes
    Returns all nodes in this graph, in the order specified by #nodeOrder().
  • adjacentNodes
    Returns the nodes which have an incident edge in common with node in this graph.
  • edgeValue
    Returns the value of the edge connecting nodeU to nodeV, if one is present; otherwise, returns Optio
  • edges
    Returns all edges in this graph.
  • allowsSelfLoops
    Returns true if this graph allows self-loops (edges that connect a node to itself). Attempting to ad
  • outDegree
    Returns the count of node's outgoing edges (equal to successors(node).size()) in a directed graph. I
  • degree
    Returns the count of node's incident edges, counting self-loops twice (equivalently, the number of t
  • edgeValueOrDefault
    Returns the value of the edge connecting nodeU to nodeV, if one is present; otherwise, returns defau
  • 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().
  • predecessors
  • nodeOrder,
  • predecessors,
  • successors,
  • asGraph,
  • equals,
  • incidentEdges

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • JTextField (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for Android Studio
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