Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for adjacentNode (0.21 sec)

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

        assertThat(ordered.target()).isEqualTo("target");
        assertThat(ordered.nodeU()).isEqualTo("source");
        assertThat(ordered.nodeV()).isEqualTo("target");
        assertThat(ordered.adjacentNode("source")).isEqualTo("target");
        assertThat(ordered.adjacentNode("target")).isEqualTo("source");
        assertThat(ordered.toString()).isEqualTo("<source -> target>");
      }
    
      @Test
      public void testUnorderedEndpointPair() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/EndpointPairTest.java

        assertThat(ordered.target()).isEqualTo("target");
        assertThat(ordered.nodeU()).isEqualTo("source");
        assertThat(ordered.nodeV()).isEqualTo("target");
        assertThat(ordered.adjacentNode("source")).isEqualTo("target");
        assertThat(ordered.adjacentNode("target")).isEqualTo("source");
        assertThat(ordered.toString()).isEqualTo("<source -> target>");
      }
    
      @Test
      public void testUnorderedEndpointPair() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. android/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();
          }
    
    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)
  6. android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

        return Collections.unmodifiableSet(inEdgeMap.keySet());
      }
    
      @Override
      public Set<E> outEdges() {
        return Collections.unmodifiableSet(outEdgeMap.keySet());
      }
    
      @Override
      public N adjacentNode(E edge) {
        // Since the reference node is defined to be 'source' for directed graphs,
        // we can assume this edge lives in the set of outgoing edges.
    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)
  7. 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();
          }
    
    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)
  8. 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());
          }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 33K bytes
    - Viewed (0)
  9. 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());
          }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/EndpointPair.java

       * returns an arbitrary (but consistent) endpoint of the origin edge.
       */
      public final N nodeU() {
        return nodeU;
      }
    
      /**
       * Returns the node {@link #adjacentNode(Object) adjacent} to {@link #nodeU()} along the origin
       * edge. If this {@link EndpointPair} {@link #isOrdered()}, this is equal to {@link #target()}.
       */
      public final N nodeV() {
        return nodeV;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 8.1K bytes
    - Viewed (0)
Back to top