Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for adjacentEdges (0.13 sec)

  1. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

        addEdge(N1, N2, E12);
        Set<String> adjacentEdges = network.adjacentEdges(E12);
        try {
          adjacentEdges.add(E23);
          fail(ERROR_MODIFIABLE_COLLECTION);
        } catch (UnsupportedOperationException e) {
          addEdge(N2, N3, E23);
          assertThat(network.adjacentEdges(E12)).containsExactlyElementsIn(adjacentEdges);
        }
      }
    
      @Override
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/ForwardingNetwork.java

      }
    
      @Override
      public EndpointPair<N> incidentNodes(E edge) {
        return delegate().incidentNodes(edge);
      }
    
      @Override
      public Set<E> adjacentEdges(E edge) {
        return delegate().adjacentEdges(edge);
      }
    
      @Override
      public int degree(N node) {
        return delegate().degree(node);
      }
    
      @Override
      public int inDegree(N node) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

          for (N incidentNode : network.incidentNodes(edge)) {
            assertThat(network.nodes()).contains(incidentNode);
            for (E adjacentEdge : network.incidentEdges(incidentNode)) {
              assertTrue(
                  edge.equals(adjacentEdge) || network.adjacentEdges(edge).contains(adjacentEdge));
            }
          }
        }
    
        for (N node : sanityCheckSet(network.nodes())) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        addEdge(N1, N2, E12);
        Set<String> adjacentEdges = network.adjacentEdges(E12);
        try {
          adjacentEdges.add(E23);
          fail(ERROR_MODIFIABLE_COLLECTION);
        } catch (UnsupportedOperationException e) {
          addEdge(N2, N3, E23);
          assertThat(network.adjacentEdges(E12)).containsExactlyElementsIn(adjacentEdges);
        }
      }
    
      @Override
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        addEdge(N1, N2, E12);
        Set<String> adjacentEdges = network.adjacentEdges(E12);
        try {
          adjacentEdges.add(E23);
          fail(ERROR_MODIFIABLE_COLLECTION);
        } catch (UnsupportedOperationException e) {
          addEdge(N2, N3, E23);
          assertThat(network.adjacentEdges(E12)).containsExactlyElementsIn(adjacentEdges);
        }
      }
    
      @Override
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

        addEdge(N1, N2, E12);
        Set<String> adjacentEdges = network.adjacentEdges(E12);
        try {
          adjacentEdges.add(E23);
          fail(ERROR_MODIFIABLE_COLLECTION);
        } catch (UnsupportedOperationException e) {
          addEdge(N2, N3, E23);
          assertThat(network.adjacentEdges(E12)).containsExactlyElementsIn(adjacentEdges);
        }
      }
    
      @Override
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/ElementOrder.java

       *         <li>{@code incidentEdges(node)}: Stable order
       *         <li>{@code inEdges(node)}: Edge insertion order
       *         <li>{@code outEdges(node)}: Edge insertion order
       *         <li>{@code adjacentEdges(edge)}: Stable order
       *         <li>{@code edgesConnecting(nodeU, nodeV)}: Edge insertion order
       *       </ul>
       * </ul>
       *
       * @since 29.0
       */
      public static <S> ElementOrder<S> stable() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/ElementOrder.java

       *         <li>{@code incidentEdges(node)}: Stable order
       *         <li>{@code inEdges(node)}: Edge insertion order
       *         <li>{@code outEdges(node)}: Edge insertion order
       *         <li>{@code adjacentEdges(edge)}: Stable order
       *         <li>{@code edgesConnecting(nodeU, nodeV)}: Edge insertion order
       *       </ul>
       * </ul>
       *
       * @since 29.0
       */
      public static <S> ElementOrder<S> stable() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/AbstractNetwork.java

      }
    
      @Override
      public int outDegree(N node) {
        return isDirected() ? outEdges(node).size() : degree(node);
      }
    
      @Override
      public Set<E> adjacentEdges(E edge) {
        EndpointPair<N> endpointPair = incidentNodes(edge); // Verifies that edge is in this network.
        Set<E> endpointPairIncidentEdges =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 13 18:17:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/AbstractNetwork.java

      }
    
      @Override
      public int outDegree(N node) {
        return isDirected() ? outEdges(node).size() : degree(node);
      }
    
      @Override
      public Set<E> adjacentEdges(E edge) {
        EndpointPair<N> endpointPair = incidentNodes(edge); // Verifies that edge is in this network.
        Set<E> endpointPairIncidentEdges =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 13 18:17:09 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top