Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for OutEdge (0.09 sec)

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

       * <p>Note that the edges are added in a shuffled order to properly test the effect of the
       * insertion order.
       */
      private void populateTShapedGraph() {
        putEdge(2, 1);
        putEdge(1, 4);
        putEdge(1, 3);
        putEdge(1, 2); // Duplicate
        putEdge(4, 5);
      }
    
      // Element Mutation
    
      @Test
      public void putEdge_existingNodes() {
        assume().that(graphIsMutable()).isTrue();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/GraphBuilder.java

     * graph.putEdge("bread", "bread");
     * graph.putEdge("chocolate", "peanut butter");
     * graph.putEdge("peanut butter", "jelly");
     *
     * // Building an immutable graph
     * ImmutableGraph<String> immutableGraph =
     *     GraphBuilder.undirected()
     *         .allowsSelfLoops(true)
     *         .<String>immutable()
     *         .putEdge("bread", "bread")
     *         .putEdge("chocolate", "peanut butter")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 7.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

        g1.putEdge(N1, N2);
        g1.putEdge(N3, N1);
    
        // for g2, add 3->1 first, then 1->2
        g2.putEdge(N3, N1);
        g2.putEdge(N1, N2);
    
        assertThat(g1).isEqualTo(g2);
      }
    
      @Test
      public void equivalent_edgeDirectionsDiffer() {
        graph.putEdge(N1, N2);
    
        MutableGraph<Integer> g2 = createGraph(edgeType);
        g2.putEdge(N2, N1);
    
        switch (edgeType) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 22 19:09:27 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

        g1.putEdge(N1, N2);
        g1.putEdge(N3, N1);
    
        // for g2, add 3->1 first, then 1->2
        g2.putEdge(N3, N1);
        g2.putEdge(N1, N2);
    
        assertThat(g1).isEqualTo(g2);
      }
    
      @Test
      public void equivalent_edgeDirectionsDiffer() {
        graph.putEdge(N1, N2);
    
        MutableGraph<Integer> g2 = createGraph(edgeType);
        g2.putEdge(N2, N1);
    
        switch (edgeType) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 22 19:09:27 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/GraphBuilder.java

     * graph.putEdge("bread", "bread");
     * graph.putEdge("chocolate", "peanut butter");
     * graph.putEdge("peanut butter", "jelly");
     *
     * // Building an immutable graph
     * ImmutableGraph<String> immutableGraph =
     *     GraphBuilder.undirected()
     *         .allowsSelfLoops(true)
     *         .<String>immutable()
     *         .putEdge("bread", "bread")
     *         .putEdge("chocolate", "peanut butter")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 7.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/StandardMutableGraph.java

        return backingValueGraph.addNode(node);
      }
    
      @Override
      public boolean putEdge(N nodeU, N nodeV) {
        return backingValueGraph.putEdgeValue(nodeU, nodeV, Presence.EDGE_EXISTS) == null;
      }
    
      @Override
      public boolean putEdge(EndpointPair<N> endpoints) {
        validateEndpoints(endpoints);
        return putEdge(endpoints.nodeU(), endpoints.nodeV());
      }
    
      @Override
      public boolean removeNode(N node) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/graph/ImmutableGraph.java

       *
       * <pre>{@code
       * static final ImmutableGraph<Country> COUNTRY_ADJACENCY_GRAPH =
       *     GraphBuilder.undirected()
       *         .<Country>immutable()
       *         .putEdge(FRANCE, GERMANY)
       *         .putEdge(FRANCE, BELGIUM)
       *         .putEdge(GERMANY, BELGIUM)
       *         .addNode(ICELAND)
       *         .build();
       * }</pre>
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/MutableGraph.java

       * @throws IllegalArgumentException if the introduction of the edge would violate {@link
       *     #allowsSelfLoops()}
       */
      @CanIgnoreReturnValue
      boolean putEdge(N nodeU, N nodeV);
    
      /**
       * Adds an edge connecting {@code endpoints} (in the order, if any, specified by {@code
       * endpoints}) if one is not already present.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 3.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/StandardMutableUndirectedGraphTest.java

            .build();
      }
    
      @Override
      final void addNode(Integer n) {
        graphAsMutableGraph.addNode(n);
      }
    
      @Override
      final void putEdge(Integer n1, Integer n2) {
        graphAsMutableGraph.putEdge(n1, n2);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Mar 10 17:54:18 UTC 2020
    - 2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/MutableGraph.java

       * @throws IllegalArgumentException if the introduction of the edge would violate {@link
       *     #allowsSelfLoops()}
       */
      @CanIgnoreReturnValue
      boolean putEdge(N nodeU, N nodeV);
    
      /**
       * Adds an edge connecting {@code endpoints} (in the order, if any, specified by {@code
       * endpoints}) if one is not already present.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 3.9K bytes
    - Viewed (0)
Back to top