Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for removeInEdge (0.24 sec)

  1. android/guava/src/com/google/common/graph/DirectedMultiNetworkConnections.java

          @Override
          public int size() {
            return successorsMultiset().count(node);
          }
        };
      }
    
      @Override
      public N removeInEdge(E edge, boolean isSelfLoop) {
        N node = super.removeInEdge(edge, isSelfLoop);
        Multiset<N> predecessors = getReference(predecessorsReference);
        if (predecessors != null) {
          checkState(predecessors.remove(node));
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 4.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/NetworkConnections.java

       *
       * <p>In the undirected case, returns {@code null} if {@code isSelfLoop} is true.
       */
      @CanIgnoreReturnValue
      @CheckForNull
      N removeInEdge(E edge, boolean isSelfLoop);
    
      /** Remove {@code edge} from the set of outgoing edges. Returns the former successor node. */
      @CanIgnoreReturnValue
      N removeOutEdge(E edge);
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 2.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/AbstractUndirectedNetworkConnections.java

        // We're relying on callers to call this method only with an edge that's in the graph.
        return requireNonNull(incidentEdgeMap.get(edge));
      }
    
      @Override
      @CheckForNull
      public N removeInEdge(E edge, boolean isSelfLoop) {
        if (!isSelfLoop) {
          return removeOutEdge(edge);
        }
        return null;
      }
    
      @Override
      public N removeOutEdge(E edge) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/StandardMutableNetwork.java

        N nodeV = connectionsU.adjacentNode(edge);
        NetworkConnections<N, E> connectionsV = requireNonNull(nodeConnections.get(nodeV));
        connectionsU.removeOutEdge(edge);
        connectionsV.removeInEdge(edge, allowsSelfLoops() && nodeU.equals(nodeV));
        edgeToReferenceNode.remove(edge);
        return true;
      }
    
      private NetworkConnections<N, E> newConnections() {
        return isDirected()
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 5.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java

          @Override
          public int size() {
            return adjacentNodesMultiset().count(node);
          }
        };
      }
    
      @Override
      @CheckForNull
      public N removeInEdge(E edge, boolean isSelfLoop) {
        if (!isSelfLoop) {
          return removeOutEdge(edge);
        }
        return null;
      }
    
      @Override
      public N removeOutEdge(E edge) {
        N node = super.removeOutEdge(edge);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 3.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

        // (We're relying on callers to call this method only with an edge that's in the graph.)
        return requireNonNull(outEdgeMap.get(edge));
      }
    
      @Override
      public N removeInEdge(E edge, boolean isSelfLoop) {
        if (isSelfLoop) {
          checkNonNegative(--selfLoopCount);
        }
        N previousNode = inEdgeMap.remove(edge);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 4.5K bytes
    - Viewed (0)
Back to top