Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for incidentEdges (0.13 sec)

  1. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 12.7K 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  3. 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);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  6. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  7. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 21.3K 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:03:02 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

            ImmutableList.builder();
        int predecessorCount = 0;
        int successorCount = 0;
    
        for (EndpointPair<N> incidentEdge : incidentEdges) {
          if (incidentEdge.nodeU().equals(thisNode) && incidentEdge.nodeV().equals(thisNode)) {
            // incidentEdge is a self-loop
    
            adjacentNodeValues.put(thisNode, new PredAndSucc(successorNodeToValueFn.apply(thisNode)));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/Graphs.java

        }
    
        @Override
        public Set<EndpointPair<N>> incidentEdges(N node) {
          return new IncidentEdgeSet<N>(this, node) {
            @Override
            public Iterator<EndpointPair<N>> iterator() {
              return Iterators.transform(
                  delegate().incidentEdges(node).iterator(),
                  edge -> EndpointPair.of(delegate(), edge.nodeV(), edge.nodeU()));
            }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 22.7K bytes
    - Viewed (0)
Back to top