Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for addInEdge (0.18 sec)

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

        if (successors != null) {
          checkState(successors.remove(node));
        }
        return node;
      }
    
      @Override
      public void addInEdge(E edge, N node, boolean isSelfLoop) {
        super.addInEdge(edge, node, isSelfLoop);
        Multiset<N> predecessors = getReference(predecessorsReference);
        if (predecessors != null) {
          checkState(predecessors.add(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

      @CanIgnoreReturnValue
      N removeOutEdge(E edge);
    
      /**
       * Add {@code edge} to the set of incoming edges. Implicitly adds {@code node} as a predecessor.
       */
      void addInEdge(E edge, N node, boolean isSelfLoop);
    
      /** Add {@code edge} to the set of outgoing edges. Implicitly adds {@code node} as a successor. */
      void addOutEdge(E edge, N node);
    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

        N previousNode = incidentEdgeMap.remove(edge);
        // We're relying on callers to call this method only with an edge that's in the graph.
        return requireNonNull(previousNode);
      }
    
      @Override
      public void addInEdge(E edge, N node, boolean isSelfLoop) {
        if (!isSelfLoop) {
          addOutEdge(edge, node);
        }
      }
    
      @Override
      public void addOutEdge(E edge, N node) {
        N previousNode = incidentEdgeMap.put(edge, node);
    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/UndirectedMultiNetworkConnections.java

        Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
        if (adjacentNodes != null) {
          checkState(adjacentNodes.remove(node));
        }
        return node;
      }
    
      @Override
      public void addInEdge(E edge, N node, boolean isSelfLoop) {
        if (!isSelfLoop) {
          addOutEdge(edge, node);
        }
      }
    
      @Override
      public void addOutEdge(E edge, N node) {
        super.addOutEdge(edge, node);
    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)
  5. android/guava/src/com/google/common/graph/StandardMutableNetwork.java

        connectionsU.addOutEdge(edge, nodeV);
        NetworkConnections<N, E> connectionsV = nodeConnections.get(nodeV);
        if (connectionsV == null) {
          connectionsV = addNodeInternal(nodeV);
        }
        connectionsV.addInEdge(edge, nodeU, isSelfLoop);
        edgeToReferenceNode.put(edge, nodeU);
        return true;
      }
    
      @Override
      @CanIgnoreReturnValue
      public boolean addEdge(EndpointPair<N> endpoints, E edge) {
    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)
  6. android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

        N previousNode = outEdgeMap.remove(edge);
        // We're relying on callers to call this method only with an edge that's in the graph.
        return requireNonNull(previousNode);
      }
    
      @Override
      public void addInEdge(E edge, N node, boolean isSelfLoop) {
        checkNotNull(edge);
        checkNotNull(node);
    
        if (isSelfLoop) {
          checkPositive(++selfLoopCount);
        }
        N previousNode = inEdgeMap.put(edge, node);
    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