Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ValueGraphBuilder (0.06 sec)

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

        MutableValueGraph<Integer, String> undirectedGraph = ValueGraphBuilder.undirected().build();
        undirectedGraph.putEdgeValue(N1, N2, E12);
    
        assertThat(transpose(undirectedGraph)).isSameInstanceAs(undirectedGraph);
      }
    
      @Test
      public void transpose_directedValueGraph() {
        MutableValueGraph<Integer, String> directedGraph =
            ValueGraphBuilder.directed().allowsSelfLoops(true).build();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/Graphs.java

          ValueGraph<N, V> graph, Iterable<? extends N> nodes) {
        MutableValueGraph<N, V> subgraph =
            (nodes instanceof Collection)
                ? ValueGraphBuilder.from(graph).expectedNodeCount(((Collection) nodes).size()).build()
                : ValueGraphBuilder.from(graph).build();
        for (N node : nodes) {
          subgraph.addNode(node);
        }
        for (N node : subgraph.nodes()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/Graphs.java

          ValueGraph<N, V> graph, Iterable<? extends N> nodes) {
        MutableValueGraph<N, V> subgraph =
            (nodes instanceof Collection)
                ? ValueGraphBuilder.from(graph).expectedNodeCount(((Collection) nodes).size()).build()
                : ValueGraphBuilder.from(graph).build();
        for (N node : nodes) {
          subgraph.addNode(node);
        }
        for (N node : subgraph.nodes()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/TraverserTest.java

        MutableValueGraph<String, Integer> valueGraph = ValueGraphBuilder.directed().build();
        valueGraph.putEdgeValue("a", "b", 11);
    
        Traverser.forTree(valueGraph); // Does not throw
      }
    
      @Test
      public void forTree_withUndirectedValueGraph_throws() throws Exception {
        MutableValueGraph<String, Integer> valueGraph = ValueGraphBuilder.undirected().build();
        valueGraph.putEdgeValue("a", "b", 11);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/TraverserTest.java

        MutableValueGraph<String, Integer> valueGraph = ValueGraphBuilder.directed().build();
        valueGraph.putEdgeValue("a", "b", 11);
    
        Traverser.forTree(valueGraph); // Does not throw
      }
    
      @Test
      public void forTree_withUndirectedValueGraph_throws() throws Exception {
        MutableValueGraph<String, Integer> valueGraph = ValueGraphBuilder.undirected().build();
        valueGraph.putEdgeValue("a", "b", 11);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
Back to top