Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 28 for incidentEdges (0.09 seconds)

  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);
            }
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 13K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/graph/AbstractBaseGraph.java

          @Override
          public Set<N> successors(N node) {
            return AbstractBaseGraph.this.successors(node);
          }
    
          @Override
          public Set<EndpointPair<N>> incidentEdges(N node) {
            return AbstractBaseGraph.this.incidentEdges(node);
          }
    
          @Override
          public Set<EndpointPair<N>> inEdges(N node) {
            checkNotNull(node);
            checkArgument(nodes().contains(node));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 07 15:57:03 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/graph/BaseGraph.java

       * Returns an {@link ElementOrder} that specifies the order of iteration for the elements of
       * {@link #edges()}, {@link #adjacentNodes(Object)}, {@link #predecessors(Object)}, {@link
       * #successors(Object)} and {@link #incidentEdges(Object)}.
       *
       * @since 29.0
       */
      ElementOrder<N> incidentEdgeOrder();
    
      /**
       * Returns a live view of this graph as a {@link Network} whose edges {@code E} are {@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Nov 11 17:11:16 GMT 2025
    - 2.9K bytes
    - Click Count (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);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Oct 06 20:14:55 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  5. 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);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Oct 06 20:14:55 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<EndpointPair<Integer>> incidentEdges = graph.incidentEdges(N1);
        assertThrows(
            UnsupportedOperationException.class, () -> incidentEdges.add(EndpointPair.ordered(N1, N2)));
        putEdge(N1, N2);
        assertThat(incidentEdges).containsExactlyElementsIn(graph.incidentEdges(N1));
      }
    
      @Test
      public void predecessors_oneEdge() {
        putEdge(N1, N2);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Oct 06 20:14:55 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/graph/AbstractNetwork.java

      public Set<E> adjacentEdges(E edge) {
        EndpointPair<N> endpointPair = incidentNodes(edge); // Verifies that edge is in this network.
        Set<E> endpointPairIncidentEdges =
            Sets.union(incidentEdges(endpointPair.nodeU()), incidentEdges(endpointPair.nodeV()));
        return edgeInvalidatableSet(
            Sets.difference(endpointPairIncidentEdges, ImmutableSet.of(edge)), edge);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 10K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/graph/StandardNetwork.java

        return nodeOrder;
      }
    
      @Override
      public ElementOrder<E> edgeOrder() {
        return edgeOrder;
      }
    
      @Override
      public Set<E> incidentEdges(N node) {
        return nodeInvalidatableSet(checkedConnections(node).incidentEdges(), node);
      }
    
      @Override
      public EndpointPair<N> incidentNodes(E edge) {
        N nodeU = checkedReferenceNode(edge);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 6.9K bytes
    - Click Count (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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  10. android/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}).
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 17.6K bytes
    - Click Count (0)
Back to Top