Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for outEdges (0.06 sec)

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

      @Override
      @Test
      public void outEdges_checkReturnedSetMutability() {
        addNode(N1);
        Set<String> outEdges = network.outEdges(N1);
        assertThrows(UnsupportedOperationException.class, () -> outEdges.add(E12));
        addEdge(N1, N2, E12);
        assertThat(network.outEdges(N1)).containsExactlyElementsIn(outEdges);
      }
    
      @Override
      @Test
      public void predecessors_checkReturnedSetMutability() {
        addNode(N2);
    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. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

            }
          }
    
          for (E outEdge : sanityCheckSet(network.outEdges(node))) {
            assertThat(network.incidentEdges(node)).contains(outEdge);
            assertThat(network.inEdges(network.incidentNodes(outEdge).adjacentNode(node)))
                .contains(outEdge);
            if (network.isDirected()) {
              assertThat(network.incidentNodes(outEdge).source()).isEqualTo(node);
            }
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<String> outEdges = network.outEdges(N1);
        assertThrows(UnsupportedOperationException.class, () -> outEdges.add(E12));
        addEdge(N1, N2, E12);
        assertThat(network.outEdges(N1)).containsExactlyElementsIn(outEdges);
      }
    
      @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
    - 20.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<String> outEdges = network.outEdges(N1);
        assertThrows(UnsupportedOperationException.class, () -> outEdges.add(E12));
        addEdge(N1, N2, E12);
        assertThat(network.outEdges(N1)).containsExactlyElementsIn(outEdges);
      }
    
      @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
    - 21.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      @Override
      @Test
      public void outEdges_checkReturnedSetMutability() {
        addNode(N1);
        Set<String> outEdges = network.outEdges(N1);
        assertThrows(UnsupportedOperationException.class, () -> outEdges.add(E12));
        addEdge(N1, N2, E12);
        assertThat(network.outEdges(N1)).containsExactlyElementsIn(outEdges);
      }
    
      @Override
      @Test
      public void predecessors_checkReturnedSetMutability() {
        addNode(N2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/AbstractNetwork.java

      }
    
      @Override
      public Set<E> edgesConnecting(N nodeU, N nodeV) {
        Set<E> outEdgesU = outEdges(nodeU);
        Set<E> inEdgesV = inEdges(nodeV);
        return nodePairInvalidatableSet(
            outEdgesU.size() <= inEdgesV.size()
                ? unmodifiableSet(Sets.filter(outEdgesU, connectedPredicate(nodeU, nodeV)))
                : unmodifiableSet(Sets.filter(inEdgesV, connectedPredicate(nodeV, nodeU))),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 13 18:17:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/graph/AbstractNetwork.java

      }
    
      @Override
      public Set<E> edgesConnecting(N nodeU, N nodeV) {
        Set<E> outEdgesU = outEdges(nodeU);
        Set<E> inEdgesV = inEdges(nodeV);
        return nodePairInvalidatableSet(
            outEdgesU.size() <= inEdgesV.size()
                ? unmodifiableSet(Sets.filter(outEdgesU, connectedPredicate(nodeU, nodeV)))
                : unmodifiableSet(Sets.filter(inEdgesV, connectedPredicate(nodeV, nodeU))),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 13 18:17:09 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/StandardNetwork.java

      }
    
      @Override
      public Set<E> inEdges(N node) {
        return nodeInvalidatableSet(checkedConnections(node).inEdges(), node);
      }
    
      @Override
      public Set<E> outEdges(N node) {
        return nodeInvalidatableSet(checkedConnections(node).outEdges(), node);
      }
    
      @Override
      public Set<N> predecessors(N node) {
        return nodeInvalidatableSet(checkedConnections(node).predecessors(), node);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/StandardNetwork.java

      }
    
      @Override
      public Set<E> inEdges(N node) {
        return nodeInvalidatableSet(checkedConnections(node).inEdges(), node);
      }
    
      @Override
      public Set<E> outEdges(N node) {
        return nodeInvalidatableSet(checkedConnections(node).outEdges(), node);
      }
    
      @Override
      public Set<N> predecessors(N node) {
        return nodeInvalidatableSet(checkedConnections(node).predecessors(), node);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/Network.java

      /**
       * Returns a live view of the edges whose {@link #incidentNodes(Object) incident nodes} in this
       * network include {@code node}.
       *
       * <p>This is equal to the union of {@link #inEdges(Object)} and {@link #outEdges(Object)}.
       *
       * <p>If {@code node} is removed from the network after this method is called, the {@code Set}
       * {@code view} returned by this method will be invalidated, and will throw {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 22.4K bytes
    - Viewed (0)
Back to top