congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ConfigurableMutableNetwork.allowsSelfLoops
Code IndexAdd Tabnine to your IDE (free)

How to use
allowsSelfLoops
method
in
com.google.common.graph.ConfigurableMutableNetwork

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

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: google/guava

if (!allowsSelfLoops()) {
 checkArgument(!isSelfLoop, SELF_LOOPS_NOT_ALLOWED, nodeU);
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: google/j2objc

if (!allowsSelfLoops()) {
 checkArgument(!isSelfLoop, SELF_LOOPS_NOT_ALLOWED, nodeU);
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: wildfly/wildfly

if (!allowsSelfLoops()) {
 checkArgument(!isSelfLoop, SELF_LOOPS_NOT_ALLOWED, nodeU);
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;
}
origin: org.jboss.eap/wildfly-client-all

if (!allowsSelfLoops()) {
 checkArgument(!isSelfLoop, SELF_LOOPS_NOT_ALLOWED, nodeU);
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

if (!allowsSelfLoops()) {
 checkArgument(!isSelfLoop, SELF_LOOPS_NOT_ALLOWED, nodeU);
com.google.common.graphConfigurableMutableNetworkallowsSelfLoops

Popular methods of ConfigurableMutableNetwork

  • <init>
    Constructs a mutable graph with the properties specified in builder.
  • addNodeInternal
    Adds node to the graph and returns the associated NetworkConnections.
  • allowsParallelEdges
  • containsEdge
  • containsNode
  • incidentNodes
  • isDirected
  • newConnections
  • removeEdge
  • addEdge
  • validateEndpoints
  • validateEndpoints

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now