Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for putEdge (0.04 sec)

  1. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/StandardImmutableDirectedGraphTest.java

        return graphBuilder.build();
      }
    
      @Override
      final void addNode(Integer n) {
        graphBuilder.addNode(n);
        graph = graphBuilder.build();
      }
    
      @Override
      final void putEdge(Integer n1, Integer n2) {
        graphBuilder.putEdge(n1, n2);
        graph = graphBuilder.build();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 10 17:54:18 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/StandardImmutableUndirectedGraphTest.java

        return graphBuilder.build();
      }
    
      @Override
      final void addNode(Integer n) {
        graphBuilder.addNode(n);
        graph = graphBuilder.build();
      }
    
      @Override
      final void putEdge(Integer n1, Integer n2) {
        graphBuilder.putEdge(n1, n2);
        graph = graphBuilder.build();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 10 17:54:18 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/StandardMutableDirectedGraphTest.java

            .build();
      }
    
      @Override
      final void addNode(Integer n) {
        graphAsMutableGraph.addNode(n);
      }
    
      @Override
      final void putEdge(Integer n1, Integer n2) {
        graphAsMutableGraph.putEdge(n1, n2);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 10 17:54:18 UTC 2020
    - 2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/StandardMutableDirectedGraphTest.java

            .build();
      }
    
      @Override
      final void addNode(Integer n) {
        graphAsMutableGraph.addNode(n);
      }
    
      @Override
      final void putEdge(Integer n1, Integer n2) {
        graphAsMutableGraph.putEdge(n1, n2);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 10 17:54:18 UTC 2020
    - 2K bytes
    - Viewed (0)
  6. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 10 17:54:18 UTC 2020
    - 2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

            GraphBuilder.directed().<String>immutable().putEdge("A", "B").build();
    
        assertThat(graph.nodes()).containsExactly("A", "B");
        assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B"));
      }
    
      @Test
      public void immutableGraphBuilder_putEdgeFromEndpointPair() {
        ImmutableGraph<String> graph =
            GraphBuilder.directed().<String>immutable().putEdge(EndpointPair.ordered("A", "B")).build();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

            GraphBuilder.directed().<String>immutable().putEdge("A", "B").build();
    
        assertThat(graph.nodes()).containsExactly("A", "B");
        assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B"));
      }
    
      @Test
      public void immutableGraphBuilder_putEdgeFromEndpointPair() {
        ImmutableGraph<String> graph =
            GraphBuilder.directed().<String>immutable().putEdge(EndpointPair.ordered("A", "B")).build();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/GraphMutationTest.java

            graph.addNode(gen.nextInt(NODE_POOL_SIZE));
          }
          ArrayList<Integer> nodeList = new ArrayList<>(graph.nodes());
          while (graph.edges().size() < NUM_EDGES) {
            graph.putEdge(getRandomElement(nodeList, gen), getRandomElement(nodeList, gen));
          }
          ArrayList<EndpointPair<Integer>> edgeList = new ArrayList<>(graph.edges());
    
          assertThat(graph.nodes()).hasSize(NUM_NODES);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 18 16:17:46 UTC 2017
    - 4.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/TraverserTest.java

        MutableGraph<String> graph = GraphBuilder.directed().build();
        graph.putEdge("a", "b");
    
        Traverser.forTree(graph); // Does not throw
      }
    
      @Test
      public void forTree_withUndirectedGraph_throws() throws Exception {
        MutableGraph<String> graph = GraphBuilder.undirected().build();
        graph.putEdge("a", "b");
    
        assertThrows(IllegalArgumentException.class, () -> Traverser.forTree(graph));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 47.5K bytes
    - Viewed (0)
Back to top