Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for incidentEdges (0.07 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. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

          }
    
          for (E incidentEdge : sanityCheckSet(network.incidentEdges(node))) {
            assertTrue(
                network.inEdges(node).contains(incidentEdge)
                    || network.outEdges(node).contains(incidentEdge));
            assertThat(network.edges()).contains(incidentEdge);
            assertThat(network.incidentNodes(incidentEdge)).contains(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. 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/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)
  5. android/guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java

      private UndirectedMultiNetworkConnections(Map<E, N> incidentEdges) {
        super(incidentEdges);
      }
    
      static <N, E> UndirectedMultiNetworkConnections<N, E> of() {
        return new UndirectedMultiNetworkConnections<>(
            new HashMap<E, N>(INNER_CAPACITY, INNER_LOAD_FACTOR));
      }
    
      static <N, E> UndirectedMultiNetworkConnections<N, E> ofImmutable(Map<E, N> incidentEdges) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/AbstractUndirectedNetworkConnections.java

      public Set<N> successors() {
        return adjacentNodes();
      }
    
      @Override
      public Set<E> incidentEdges() {
        return Collections.unmodifiableSet(incidentEdgeMap.keySet());
      }
    
      @Override
      public Set<E> inEdges() {
        return incidentEdges();
      }
    
      @Override
      public Set<E> outEdges() {
        return incidentEdges();
      }
    
      @Override
      public N adjacentNode(E edge) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

      @Override
      public Set<N> adjacentNodes() {
        return Sets.union(predecessors(), successors());
      }
    
      @Override
      public Set<E> incidentEdges() {
        return new AbstractSet<E>() {
          @Override
          public UnmodifiableIterator<E> iterator() {
            Iterable<E> incidentEdges =
                (selfLoopCount == 0)
                    ? Iterables.concat(inEdgeMap.keySet(), outEdgeMap.keySet())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/UndirectedNetworkConnections.java

        return new UndirectedNetworkConnections<>(HashBiMap.<E, N>create(EXPECTED_DEGREE));
      }
    
      static <N, E> UndirectedNetworkConnections<N, E> ofImmutable(Map<E, N> incidentEdges) {
        return new UndirectedNetworkConnections<>(ImmutableBiMap.copyOf(incidentEdges));
      }
    
      @Override
      public Set<N> adjacentNodes() {
        return Collections.unmodifiableSet(((BiMap<E, N>) incidentEdgeMap).values());
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top