Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 60 for AddEdge (0.1 sec)

  1. src/internal/dag/parse.go

    	if _, ok := g.byLabel[label]; ok {
    		return false
    	}
    	g.byLabel[label] = len(g.Nodes)
    	g.Nodes = append(g.Nodes, label)
    	g.edges[label] = map[string]bool{}
    	return true
    }
    
    func (g *Graph) AddEdge(from, to string) {
    	g.edges[from][to] = true
    }
    
    func (g *Graph) DelEdge(from, to string) {
    	delete(g.edges[from], to)
    }
    
    func (g *Graph) HasEdge(from, to string) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/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 Feb 28 00:05:29 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/shape_inference_helpers.cc

      }
      if (replaced_) {
        return errors::Internal("BackEdgeHelper Replace called more than once.");
      }
      replaced_ = true;
      for (const BackEdge& be : back_edges_) {
        graph_->AddEdge(be.src, be.src_output, be.dst, be.dst_input);
      }
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/clone_constants_for_better_clustering.cc

      TF_ASSIGN_OR_RETURN(Node * new_in, graph_->AddNode(new_in_def));
    
      for (const Edge* e : n->in_edges()) {
        if (e->IsControlEdge()) {
          graph_->AddControlEdge(e->src(), new_in);
        } else {
          graph_->AddEdge(e->src(), e->src_output(), new_in, e->dst_input());
        }
      }
    
      new_in->set_assigned_device_name(n->assigned_device_name());
      return new_in;
    }
    
    namespace {
    absl::StatusOr<bool> IsConstantSmall(Node* n) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. maven-model-builder/src/main/java/org/apache/maven/model/building/Graph.java

     * under the License.
     */
    package org.apache.maven.model.building;
    
    import java.util.*;
    
    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: Mon Jan 22 17:27:48 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. 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)
  7. maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java

            {
                ArtifactMetadata md = node.getMd();
                MetadataGraphEdge e =
                        new MetadataGraphEdge(md.version, md.resolved, md.artifactScope, md.artifactUri, depth, pomOrder);
                addEdge(parentVertex, vertex, e);
            } else {
                entry = vertex;
            }
    
            MetadataTreeNode[] kids = node.getChildren();
            if (kids == null || kids.length < 1) {
                return;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Oct 05 18:41:13 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. tensorflow/compiler/jit/shape_inference_test.cc

        auto sink = ops::Identity(scope.WithOpName("sink"), exit);
    
        // Remove the dummy node and add the loop backedge.
        scope.graph()->RemoveNode(dummy.node());
        scope.graph()->AddEdge(next_iteration.node(), 0, merge.output.node(), 1);
    
        TF_EXPECT_OK(scope.ToGraph(&graph));
      }
    
      GraphShapeInfo shape_info;
      TF_ASSERT_OK(InferShapes(&graph, /*arg_shapes=*/{}, /*fnlib_def=*/nullptr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top