Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for adjacentNode (0.31 sec)

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

        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> adjacentNodes = network.adjacentNodes(N1);
        assertThrows(UnsupportedOperationException.class, () -> adjacentNodes.add(N2));
        addEdge(N1, N2, E12);
        assertThat(network.adjacentNodes(N1)).containsExactlyElementsIn(adjacentNodes);
      }
    
      @Override
      public void adjacentEdges_checkReturnedSetMutability() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> adjacentNodes = network.adjacentNodes(N1);
        assertThrows(UnsupportedOperationException.class, () -> adjacentNodes.add(N2));
        addEdge(N1, N2, E12);
        assertThat(network.adjacentNodes(N1)).containsExactlyElementsIn(adjacentNodes);
      }
    
      @Override
      public void adjacentEdges_checkReturnedSetMutability() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

            }
          }
    
          for (N adjacentNode : sanityCheckSet(network.adjacentNodes(node))) {
            assertTrue(
                network.predecessors(node).contains(adjacentNode)
                    || network.successors(node).contains(adjacentNode));
            assertTrue(
                !network.edgesConnecting(node, adjacentNode).isEmpty()
                    || !network.edgesConnecting(adjacentNode, node).isEmpty());
          }
    
    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/AbstractStandardUndirectedNetworkTest.java

              .addEqualityGroup(
                  network.predecessors(node), network.successors(node), network.adjacentNodes(node))
              .testEquals();
    
          for (Integer adjacentNode : network.adjacentNodes(node)) {
            assertThat(network.edgesConnecting(node, adjacentNode))
                .containsExactlyElementsIn(network.edgesConnecting(adjacentNode, node));
          }
        }
      }
    
      @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)
  5. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

          }
    
          for (N adjacentNode : sanityCheckSet(graph.adjacentNodes(node))) {
            if (!graph.allowsSelfLoops()) {
              assertThat(node).isNotEqualTo(adjacentNode);
            }
            assertThat(
                    graph.predecessors(node).contains(adjacentNode)
                        || graph.successors(node).contains(adjacentNode))
                .isTrue();
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

              .addEqualityGroup(
                  network.predecessors(node), network.successors(node), network.adjacentNodes(node))
              .testEquals();
    
          for (Integer adjacentNode : network.adjacentNodes(node)) {
            assertThat(network.edgesConnecting(node, adjacentNode))
                .containsExactlyElementsIn(network.edgesConnecting(adjacentNode, node));
          }
        }
      }
    
      @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/AbstractNetwork.java

          }
    
          @Override
          public boolean allowsSelfLoops() {
            return AbstractNetwork.this.allowsSelfLoops();
          }
    
          @Override
          public Set<N> adjacentNodes(N node) {
            return AbstractNetwork.this.adjacentNodes(node);
          }
    
          @Override
          public Set<N> predecessors(N node) {
            return AbstractNetwork.this.predecessors(node);
          }
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 13 18:17:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/AbstractNetwork.java

          }
    
          @Override
          public boolean allowsSelfLoops() {
            return AbstractNetwork.this.allowsSelfLoops();
          }
    
          @Override
          public Set<N> adjacentNodes(N node) {
            return AbstractNetwork.this.adjacentNodes(node);
          }
    
          @Override
          public Set<N> predecessors(N node) {
            return AbstractNetwork.this.predecessors(node);
          }
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 13 18:17:09 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> adjacentNodes = graph.adjacentNodes(N1);
        assertThrows(UnsupportedOperationException.class, () -> adjacentNodes.add(N2));
        putEdge(N1, N2);
        assertThat(graph.adjacentNodes(N1)).containsExactlyElementsIn(adjacentNodes);
      }
    
      @Override
      @Test
      public void predecessors_checkReturnedSetMutability() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> adjacentNodes = graph.adjacentNodes(N1);
        assertThrows(UnsupportedOperationException.class, () -> adjacentNodes.add(N2));
        putEdge(N1, N2);
        assertThat(graph.adjacentNodes(N1)).containsExactlyElementsIn(adjacentNodes);
      }
    
      @Override
      @Test
      public void predecessors_checkReturnedSetMutability() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top