Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for inEdges (0.08 sec)

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

      @Override
      @Test
      public void inEdges_checkReturnedSetMutability() {
        addNode(N2);
        Set<String> inEdges = network.inEdges(N2);
        assertThrows(UnsupportedOperationException.class, () -> inEdges.add(E12));
        addEdge(N1, N2, E12);
        assertThat(network.inEdges(N2)).containsExactlyElementsIn(inEdges);
      }
    
      @Override
      @Test
      public void outEdges_checkReturnedSetMutability() {
        addNode(N1);
    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

                .contains(inEdge);
            if (network.isDirected()) {
              assertThat(network.incidentNodes(inEdge).target()).isEqualTo(node);
            }
          }
    
          for (E outEdge : sanityCheckSet(network.outEdges(node))) {
            assertThat(network.incidentEdges(node)).contains(outEdge);
    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(N2);
        Set<String> inEdges = network.inEdges(N2);
        assertThrows(UnsupportedOperationException.class, () -> inEdges.add(E12));
        addEdge(N1, N2, E12);
        assertThat(network.inEdges(N2)).containsExactlyElementsIn(inEdges);
      }
    
      @Override
      @Test
      public void outEdges_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(N2);
        Set<String> inEdges = network.inEdges(N2);
        assertThrows(UnsupportedOperationException.class, () -> inEdges.add(E12));
        addEdge(N1, N2, E12);
        assertThat(network.inEdges(N2)).containsExactlyElementsIn(inEdges);
      }
    
      @Override
      @Test
      public void outEdges_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 inEdges_checkReturnedSetMutability() {
        addNode(N2);
        Set<String> inEdges = network.inEdges(N2);
        assertThrows(UnsupportedOperationException.class, () -> inEdges.add(E12));
        addEdge(N1, N2, E12);
        assertThat(network.inEdges(N2)).containsExactlyElementsIn(inEdges);
      }
    
      @Override
      @Test
      public void outEdges_checkReturnedSetMutability() {
        addNode(N1);
    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

      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))),
            nodeU,
            nodeV);
      }
    
      @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)
  7. guava/src/com/google/common/graph/AbstractNetwork.java

      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))),
            nodeU,
            nodeV);
      }
    
      @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)
  8. android/guava/src/com/google/common/graph/StandardNetwork.java

        return nodePairInvalidatableSet(connectionsU.edgesConnecting(nodeV), nodeU, nodeV);
      }
    
      @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
    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

        return nodePairInvalidatableSet(connectionsU.edgesConnecting(nodeV), nodeU, nodeV);
      }
    
      @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
    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