Codota Logo
ValueGraph.edgeValue
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain ValueGraph
private void myMethod () {
ValueGraph v =
  • Codota IconValueGraph graph;new TransposedValueGraph<>(graph)
  • Smart code suggestions by Codota
}
origin: google/guava

@Override
public Optional<V> edgeValue(EndpointPair<N> endpoints) {
 return delegate().edgeValue(endpoints);
}
origin: google/guava

@Override
public Optional<V> edgeValue(N nodeU, N nodeV) {
 return delegate().edgeValue(nodeV, nodeU); // transpose
}
origin: google/guava

@Override
public Optional<V> edgeValue(N nodeU, N nodeV) {
 return delegate().edgeValue(nodeU, nodeV);
}
origin: google/guava

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

@Override
public Optional<V> edgeValue(N nodeU, N nodeV) {
 return delegate().edgeValue(nodeV, nodeU); // transpose
}
origin: wildfly/wildfly

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

@Override
public Optional<V> edgeValue(N nodeU, N nodeV) {
 return delegate().edgeValue(nodeV, nodeU); // transpose
}
origin: org.jboss.eap/wildfly-client-all

@Override
public Optional<V> edgeValue(N nodeU, N nodeV) {
 return delegate().edgeValue(nodeV, nodeU); // transpose
}
origin: org.jboss.eap/wildfly-client-all

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

@Override
public Optional<V> edgeValue(N nodeU, N nodeV) {
 return delegate().edgeValue(nodeU, nodeV);
}
origin: batfish/batfish

private static BgpSessionProperties getBgpSessionProperties(
  ValueGraph<BgpPeerConfigId, BgpSessionProperties> bgpTopology, BgpEdgeId edge) {
 /*
 BGP topology edges not guaranteed to be symmetrical (in case of dynamic neighbors).
 So to get session properties, we might need to flip the src/dst edge
  */
 Optional<BgpSessionProperties> session = bgpTopology.edgeValue(edge.src(), edge.dst());
 return session.orElseGet(
   () ->
     bgpTopology
       .edgeValue(edge.dst(), edge.src())
       .orElseThrow(
         () ->
           new IllegalArgumentException(
             String.format("No BGP edge %s in BGP topology", edge))));
}
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);
  }
}
origin: jrtom/jung

  connectedNode,
  graph
    .edgeValue(node, connectedNode)
    .orElseThrow(
      () ->
double connectingEdgeWeight =
  graph
    .edgeValue(node, adjacentNode)
    .orElseThrow(
      () ->
origin: batfish/batfish

  ipsecTopology.edgeValue(endpoint.nodeU(), endpoint.nodeV());
return ipsecSession.isPresent()
  && ipsecSession.get().getNegotiatedIpsecP2Proposal() != null;
origin: batfish/batfish

Optional<IpsecSession> edgeIpsecSession = ipsecTopology.edgeValue(endPointU, endPointV);
if (edgeIpsecSession.isPresent()
  && edgeIpsecSession.get().getNegotiatedIpsecP2Proposal() != null) {
origin: batfish/batfish

boolean ebgp =
  _bgpTopology
    .edgeValue(bgpPeerConfigId, remoteBgpPeerConfigId)
    .orElseThrow(
      () ->
BgpSessionProperties sessionProp =
  _bgpTopology
    .edgeValue(bgpPeerConfigId, remoteBgpPeerConfigId)
    .orElseThrow(
      () ->
com.google.common.graphValueGraphedgeValue

Javadoc

Returns the value of the edge that connects endpoints (in the order, if any, specified by endpoints), if one is present; otherwise, returns Optional.empty().

If this graph is directed, the endpoints must be ordered.

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.
  • 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()
  • hasEdgeConnecting
    Returns true if there is an edge directly connecting nodeU to nodeV. This is equivalent to nodes().c
  • nodeOrder
    Returns the order of iteration for the elements of #nodes().
  • predecessors
  • nodeOrder,
  • predecessors,
  • successors,
  • asGraph,
  • equals,
  • incidentEdges

Popular in Java

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • notifyDataSetChanged (ArrayAdapter)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JPanel (javax.swing)
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now