Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 340 for Graph (0.17 sec)

  1. android/guava/src/com/google/common/graph/GraphBuilder.java

     *
     * <p>Examples of use:
     *
     * <pre>{@code
     * // Building a mutable graph
     * MutableGraph<String> graph = GraphBuilder.undirected().allowsSelfLoops(true).build();
     * graph.putEdge("bread", "bread");
     * graph.putEdge("chocolate", "peanut butter");
     * graph.putEdge("peanut butter", "jelly");
     *
     * // Building an immutable graph
     * ImmutableGraph<String> immutableGraph =
     *     GraphBuilder.undirected()
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 03 01:21:31 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/EndpointPairIterator.java

      Iterator<N> successorIterator = ImmutableSet.<N>of().iterator();
    
      static <N> EndpointPairIterator<N> of(BaseGraph<N> graph) {
        return graph.isDirected() ? new Directed<N>(graph) : new Undirected<N>(graph);
      }
    
      private EndpointPairIterator(BaseGraph<N> graph) {
        this.graph = graph;
        this.nodeIterator = graph.nodes().iterator();
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jul 09 17:31:04 GMT 2021
    - 5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/PackageSanityTests.java

        MutableNetwork<String, String> mutableNetworkB = NetworkBuilder.directed().build();
        mutableNetworkB.addNode("b");
    
        setDistinctValues(AbstractGraphBuilder.class, GRAPH_BUILDER_A, GRAPH_BUILDER_B);
        setDistinctValues(Graph.class, IMMUTABLE_GRAPH_A, IMMUTABLE_GRAPH_B);
        setDistinctValues(MutableNetwork.class, mutableNetworkA, mutableNetworkB);
        setDistinctValues(NetworkBuilder.class, NETWORK_BUILDER_A, NETWORK_BUILDER_B);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 19:24:25 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/GraphPropertiesTest.java

      public void hasCycle_isolatedNodes() {
        for (MutableGraph<Integer> graph : graphsToTest) {
          graph.addNode(1);
          graph.addNode(2);
        }
        assertThat(hasCycle(directedGraph)).isFalse();
        assertThat(hasCycle(undirectedGraph)).isFalse();
      }
    
      @Test
      public void hasCycle_oneEdge() {
        for (MutableGraph<Integer> graph : graphsToTest) {
          graph.putEdge(1, 2);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 07 15:09:01 GMT 2016
    - 5.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/GraphMutationTest.java

          MutableGraph<Integer> graph = graphBuilder.allowsSelfLoops(true).build();
    
          assertThat(graph.nodes()).isEmpty();
          assertThat(graph.edges()).isEmpty();
          AbstractGraphTest.validateGraph(graph);
    
          while (graph.nodes().size() < NUM_NODES) {
            graph.addNode(gen.nextInt(NODE_POOL_SIZE));
          }
          ArrayList<Integer> nodeList = new ArrayList<>(graph.nodes());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Aug 18 16:17:46 GMT 2017
    - 4.2K bytes
    - Viewed (0)
  6. tensorflow/c/c_api.h

        TF_Graph* graph, const TF_Buffer* graph_def,
        const TF_ImportGraphDefOptions* options, TF_Output* return_outputs,
        int num_return_outputs, TF_Status* status);
    
    // Import the graph serialized in `graph_def` into `graph`.
    // Convenience function for when no results are needed.
    TF_CAPI_EXPORT extern void TF_GraphImportGraphDef(
        TF_Graph* graph, const TF_Buffer* graph_def,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  7. maven-core/src/test/java/org/apache/maven/graph/DefaultProjectDependencyGraphTest.java

        @Test
        void testGetSortedProjects() throws DuplicateProjectException, CycleDetectedException {
            ProjectDependencyGraph graph = new DefaultProjectDependencyGraph(Arrays.asList(depender1, aProject));
            final List<MavenProject> sortedProjects = graph.getSortedProjects();
            assertEquals(aProject, sortedProjects.get(0));
            assertEquals(depender1, sortedProjects.get(1));
        }
    
        @Test
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Sep 22 06:02:04 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  8. tensorflow/c/c_test_util.h

    TF_Operation* Placeholder(TF_Graph* graph, TF_Status* s,
                              const char* name = "feed",
                              TF_DataType dtype = TF_INT32,
                              const std::vector<int64_t>& dims = {});
    
    TF_Operation* Const(TF_Tensor* t, TF_Graph* graph, TF_Status* s,
                        const char* name = "const");
    
    TF_Operation* ScalarConst(bool v, TF_Graph* graph, TF_Status* s,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 09 01:06:53 GMT 2018
    - 6K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_function_test.cc

       */
      // Define
      TF_Operation* feed1 = Placeholder(func_graph_, s_, "feed1");
      TF_Operation* feed2 = Placeholder(func_graph_, s_, "feed2");
      TF_Operation* add = Add(feed1, feed2, func_graph_, s_);
      Define(-1, {}, {feed1, feed2}, {add}, {});
    
      // Use, run, and verify
      TF_Operation* two = ScalarConst(2, host_graph_, s_);
      TF_Operation* func_feed = Placeholder(host_graph_, s_);
      TF_Operation* func_op = Use({two, func_feed});
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  10. guava-tests/test/com/google/common/graph/TraverserTest.java

        assertThat(graph.requestedNodes).containsExactly('a', 'a', 'a', 'b', 'b');
      }
    
      @Test
      public void forGraph_breadthFirstIterable_iterableIsLazy() {
        RequestSavingGraph graph = new RequestSavingGraph(DIAMOND_GRAPH);
        Iterable<Character> result = Traverser.forGraph(graph).breadthFirst(charactersOf("ab"));
    
        assertEqualCharNodes(Iterables.limit(result, 2), "ab");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 47.5K bytes
    - Viewed (0)
Back to top