Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for adjacentNodes (0.24 sec)

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

      @Override
      public Set<N> adjacentNodes() {
        return Collections.unmodifiableSet(adjacentNodesMultiset().elementSet());
      }
    
      private Multiset<N> adjacentNodesMultiset() {
        Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
        if (adjacentNodes == null) {
          adjacentNodes = HashMultiset.create(incidentEdgeMap.values());
    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)
  2. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      }
    
      @Test
      public void adjacentNodes_oneEdge() {
        putEdge(N1, N2);
        assertThat(graph.adjacentNodes(N1)).containsExactly(N2);
        assertThat(graph.adjacentNodes(N2)).containsExactly(N1);
      }
    
      @Test
      public void adjacentNodes_noAdjacentNodes() {
        addNode(N1);
        assertThat(graph.adjacentNodes(N1)).isEmpty();
      }
    
      @Test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

      }
    
      @Override
      @Test
      public void adjacentNodes_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> adjacentNodes = graph.adjacentNodes(N1);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> adjacentNodes.add(N2));
        putEdge(N1, N2);
        assertThat(graph.adjacentNodes(N1)).containsExactlyElementsIn(adjacentNodes);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/UndirectedGraphConnections.java

      }
    
      @Override
      public Set<N> adjacentNodes() {
        return Collections.unmodifiableSet(adjacentNodeValues.keySet());
      }
    
      @Override
      public Set<N> predecessors() {
        return adjacentNodes();
      }
    
      @Override
      public Set<N> successors() {
        return adjacentNodes();
      }
    
      @Override
      public Iterator<EndpointPair<N>> incidentEdgeIterator(N thisNode) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 3.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      }
    
      @Override
      @Test
      public void adjacentNodes_checkReturnedSetMutability() {
        addNode(N1);
        Set<Integer> adjacentNodes = network.adjacentNodes(N1);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> adjacentNodes.add(N2));
        addEdge(N1, N2, E12);
        assertThat(network.adjacentNodes(N1)).containsExactlyElementsIn(adjacentNodes);
      }
    
      @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      }
    
      @Test
      public void adjacentNodes_oneEdge() {
        putEdge(N1, N2);
        assertThat(graph.adjacentNodes(N1)).containsExactly(N2);
        assertThat(graph.adjacentNodes(N2)).containsExactly(N1);
      }
    
      @Test
      public void adjacentNodes_noAdjacentNodes() {
        addNode(N1);
        assertThat(graph.adjacentNodes(N1)).isEmpty();
      }
    
      @Test
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

      @Override
      @Test
      public void adjacentNodes_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> adjacentNodes = network.adjacentNodes(N1);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> adjacentNodes.add(N2));
        addEdge(N1, N2, E12);
        assertThat(network.adjacentNodes(N1)).containsExactlyElementsIn(adjacentNodes);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

      }
    
      @Override
      @Test
      public void adjacentNodes_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> adjacentNodes = graph.adjacentNodes(N1);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> adjacentNodes.add(N2));
        putEdge(N1, N2);
        assertThat(graph.adjacentNodes(N1)).containsExactlyElementsIn(adjacentNodes);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

      @Override
      @Test
      public void adjacentNodes_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> adjacentNodes = network.adjacentNodes(N1);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> adjacentNodes.add(N2));
        addEdge(N1, N2, E12);
        assertThat(network.adjacentNodes(N1)).containsExactlyElementsIn(adjacentNodes);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

      }
    
      @Override
      @Test
      public void adjacentNodes_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> adjacentNodes = graph.adjacentNodes(N1);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> adjacentNodes.add(N2));
        putEdge(N1, N2);
        assertThat(graph.adjacentNodes(N1)).containsExactlyElementsIn(adjacentNodes);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
Back to top