Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for incidentEdges (0.1 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java

                count = vertices.size() + vertices.size() / 2;
            }
    
            checkEdges(count);
        }
    
        private void checkEdges(int nEdges) {
            if (incidentEdges == null) {
                incidentEdges = new HashMap<>(nEdges);
            }
            if (excidentEdges == null) {
                excidentEdges = new HashMap<>(nEdges);
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

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

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

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

        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<String> incidentEdges = network.incidentEdges(N1);
        assertThrows(UnsupportedOperationException.class, () -> incidentEdges.add(E12));
        addEdge(N1, N2, E12);
        assertThat(network.incidentEdges(N1)).containsExactlyElementsIn(incidentEdges);
      }
    
      @Override
      @Test
      public void adjacentNodes_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)
  6. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<String> incidentEdges = network.incidentEdges(N1);
        assertThrows(UnsupportedOperationException.class, () -> incidentEdges.add(E12));
        addEdge(N1, N2, E12);
        assertThat(network.incidentEdges(N1)).containsExactlyElementsIn(incidentEdges);
      }
    
      @Override
      @Test
      public void adjacentNodes_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)
  7. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

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

      /**
       * Returns the count of {@code node}'s {@link #incidentEdges(Object) incident edges}, counting
       * self-loops twice (equivalently, the number of times an edge touches {@code node}).
       *
       * <p>For directed networks, this is equal to {@code inDegree(node) + outDegree(node)}.
       *
       * <p>For undirected networks, this is equal to {@code incidentEdges(node).size()} + (number of
       * self-loops incident to {@code node}).
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/ElementOrder.java

       *         <li>{@code incidentEdges(node)}: Edge insertion order
       *       </ul>
       *   <li>For {@link Network}:
       *       <ul>
       *         <li>{@code adjacentNodes(node)}: Stable order
       *         <li>{@code predecessors(node)}: Connecting edge insertion order
       *         <li>{@code successors(node)}: Connecting edge insertion order
       *         <li>{@code incidentEdges(node)}: Stable order
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/ElementOrder.java

       *         <li>{@code incidentEdges(node)}: Edge insertion order
       *       </ul>
       *   <li>For {@link Network}:
       *       <ul>
       *         <li>{@code adjacentNodes(node)}: Stable order
       *         <li>{@code predecessors(node)}: Connecting edge insertion order
       *         <li>{@code successors(node)}: Connecting edge insertion order
       *         <li>{@code incidentEdges(node)}: Stable order
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top