Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for AddEdge (0.13 sec)

  1. src/go/types/mono.go

    		return
    	}
    
    	// flow adds an edge from vertex src representing that typ flows to tpar.
    	flow := func(src int, typ Type) {
    		weight := 1
    		if typ == targ {
    			weight = 0
    		}
    
    		w.addEdge(w.typeParamVertex(tpar), src, weight, pos, targ)
    	}
    
    	// Recursively walk the type argument to find any defined types or
    	// type parameters.
    	var do func(typ Type)
    	do = func(typ Type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/project/Graph.java

        public Collection<Vertex> getVertices() {
            return vertices.values();
        }
    
        Vertex addVertex(String label) {
            return vertices.computeIfAbsent(label, Vertex::new);
        }
    
        void addEdge(Vertex from, Vertex to) throws CycleDetectedException {
            from.children.add(to);
            to.parents.add(from);
            List<String> cycle = findCycle(to);
            if (cycle != null) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Sep 22 06:02:04 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/Graph.java

    import java.util.LinkedList;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    
    class Graph {
    
        final Map<String, Set<String>> graph = new LinkedHashMap<>();
    
        synchronized void addEdge(String from, String to) throws CycleDetectedException {
            if (graph.computeIfAbsent(from, l -> new HashSet<>()).add(to)) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/internal/impl/Graph.java

        public Collection<Vertex> getVertices() {
            return vertices.values();
        }
    
        Vertex addVertex(String label) {
            return vertices.computeIfAbsent(label, Vertex::new);
        }
    
        void addEdge(Vertex from, Vertex to) throws CycleDetectedException {
            from.children.add(to);
            to.parents.add(from);
            List<String> cycle = findCycle(to);
            if (cycle != null) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_compile_util.cc

                                                                  : args[i].type)
                .Attr("index", i)
                .Finalize(graph.get(), &node);
        TF_RETURN_IF_ERROR(status);
        graph->AddEdge(node, 0, main_node, i);
      }
    
      // Similarly with return values, create dummy _Retval nodes fed by `node`.
      for (int64_t i = 0, end = result_types.size(); i < end; ++i) {
        Node* node;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java

                        MetadataGraphVertex newV = res.addVertex(newMd);
                        MetadataGraphVertex sourceV = res.addVertex(edge.getSource().getMd());
    
                        res.addEdge(sourceV, newV, edge);
                    }
                }
                // System.err.println("Original graph("+graph.getVertices().size()+"):\n"+graph.toString());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  7. tensorflow/cc/ops/while_loop.cc

      // Create the backedges from the NextIteration nodes to the Merge nodes.
      for (size_t i = 0; i < num_loop_vars; ++i) {
        const int merge_backedge_output_index = 1;
        scope.graph()->AddEdge(next_outputs[i].node(), next_outputs[i].index(),
                               merge_outputs[i].node(),
                               merge_backedge_output_index);
      }
    
      outputs->resize(num_loop_vars);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 01:01:21 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. src/runtime/mklockrank.go

    	if err != nil {
    		log.Fatal(err)
    	}
    
    	var out []byte
    	if *flagDot {
    		var b bytes.Buffer
    		g.TransitiveReduction()
    		// Add cyclic edges for visualization.
    		for k := range cyclicRanks {
    			g.AddEdge(k, k)
    		}
    		// Reverse the graph. It's much easier to read this as
    		// a "<" partial order than a ">" partial order. This
    		// ways, locks are acquired from the top going down
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top