Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 51 for AddEdge (0.07 sec)

  1. guava/src/com/google/common/graph/NetworkBuilder.java

     * flightNetwork.addEdge("LAX", "ATL", 3025);
     * flightNetwork.addEdge("LAX", "ATL", 1598);
     * flightNetwork.addEdge("ATL", "LAX", 2450);
     *
     * // Building a immutable network
     * ImmutableNetwork<String, Integer> immutableNetwork =
     *     NetworkBuilder.directed()
     *         .allowsParallelEdges(true)
     *         .<String, Integer>immutable()
     *         .addEdge("LAX", "ATL", 3025)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContextBuilder.java

                        // gathered with problem collector
                    }
                    return null;
                }
            };
        }
    
        private boolean addEdge(Path from, Path p, DefaultModelProblemCollector problems) {
            try {
                dag.addEdge(from.toString(), p.toString());
                return true;
            } catch (Graph.CycleDetectedException e) {
                problems.add(new DefaultModelProblem(
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/encapsulate_xla_computations_pass_test.cc

      TF_CHECK_OK(scope.DoShapeInference(launch));
      scope.graph()->AddEdge(a.node(), 0, launch, 0);
      scope.graph()->AddEdge(b.node(), 0, launch, 1);
      scope.graph()->AddEdge(c.node(), 0, launch, 2);
      scope.graph()->AddEdge(d.node(), 0, launch, 3);
      scope.graph()->AddEdge(u.node(), 0, launch, 4);
      scope.graph()->AddEdge(v.node(), 0, launch, 5);
      scope.graph()->AddEdge(w.node(), 0, launch, 6);
    
      auto out0 =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 18:03:15 UTC 2023
    - 14.7K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/stackcheck.go

    	// recording the graph, its out-edges.
    	var edges []stackCheckEdge
    	maxHeight := 0
    	ctxt := sc.ctxt
    	// addEdge adds a stack growth out of this function to
    	// function "target" or, if target == 0, a local stack growth
    	// within the function.
    	addEdge := func(growth int, target loader.Sym) {
    		if graph {
    			edges = append(edges, stackCheckEdge{growth, target})
    		}
    		height := growth
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 16:49:08 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

          if (edge->src_output() == Graph::kControlSlot) {
            g->AddControlEdge(edge->src(), send_from_host_node);
          } else {
            g->AddEdge(edge->src(), edge->src_output(), send_from_host_node, index);
          }
        }
        g->RemoveNode(n);
      }
      g->AddEdge(key_placeholder, 0, send_from_host_node,
                 send_from_host_dtypes->size());
      return send_from_host_node;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top