Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 130 for Edges (0.03 sec)

  1. src/internal/dag/alg.go

    // license that can be found in the LICENSE file.
    
    package dag
    
    // Transpose reverses all edges in g.
    func (g *Graph) Transpose() {
    	old := g.edges
    
    	g.edges = make(map[string]map[string]bool)
    	for _, n := range g.Nodes {
    		g.edges[n] = make(map[string]bool)
    	}
    
    	for from, tos := range old {
    		for to := range tos {
    			g.edges[to][from] = true
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 04 15:31:44 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/inittask.go

    		}
    
    		// Find all incoming edges into s.
    		a := sort.Search(len(edges), func(i int) bool { return edges[i].to >= s })
    		b := sort.Search(len(edges), func(i int) bool { return edges[i].to > s })
    
    		// Decrement the import count for all packages that import s.
    		// If the count reaches 0, that package is now ready to schedule.
    		for _, e := range edges[a:b] {
    			m[e.from]--
    			if m[e.from] == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.java

            assertNotNull(res.getExcidentEdges(v1), "no edges in the resulting graph after resolver");
    
            assertEquals(4, res.getVertices().size(), "wrong # of vertices in the resulting graph after resolver");
            assertEquals(
                    2,
                    res.getExcidentEdges(v1).size(),
                    "wrong # of excident edges in the resulting graph entry after resolver");
    
            assertEquals(
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. src/internal/trace/mud.go

    		return math.NaN(), false
    	}
    
    	// Sort edges.
    	edges := d.unsorted
    	slices.SortFunc(edges, func(a, b edge) int {
    		return cmp.Compare(a.x, b.x)
    	})
    	// Merge with sorted edges.
    	d.unsorted = nil
    	if d.sorted == nil {
    		d.sorted = edges
    	} else {
    		oldSorted := d.sorted
    		newSorted := make([]edge, len(oldSorted)+len(edges))
    		i, j := 0, 0
    		for o := range newSorted {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. src/internal/dag/parse.go

    	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 {
    	return g.edges[from] != nil && g.edges[from][to]
    }
    
    func (g *Graph) Edges(from string) []string {
    	edges := make([]string, 0, 16)
    	for k := range g.edges[from] {
    		edges = append(edges, k)
    	}
    	slices.SortFunc(edges, func(a, b string) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. pkg/controller/garbagecollector/dump.go

    				nodes = append(nodes, currOwnerVertex)
    			}
    			edges = append(edges, dotEdge{F: currVertex.uid, T: currOwnerVertex.uid})
    		}
    	}
    
    	sort.SliceStable(nodes, func(i, j int) bool { return nodes[i].uid < nodes[j].uid })
    	sort.SliceStable(edges, func(i, j int) bool {
    		if edges[i].F != edges[j].F {
    			return edges[i].F < edges[j].F
    		}
    		return edges[i].T < edges[j].T
    	})
    
    	return nodes, edges
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 17:12:33 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/BaseGraph.java

      Set<N> nodes();
    
      /** Returns all edges in this graph. */
      Set<EndpointPair<N>> edges();
    
      //
      // Graph properties
      //
    
      /**
       * Returns true if the edges in this graph are directed. Directed edges connect a {@link
       * EndpointPair#source() source node} to a {@link EndpointPair#target() target node}, while
       * undirected edges connect a pair of nodes to each other.
       */
      boolean isDirected();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/BaseGraph.java

      Set<N> nodes();
    
      /** Returns all edges in this graph. */
      Set<EndpointPair<N>> edges();
    
      //
      // Graph properties
      //
    
      /**
       * Returns true if the edges in this graph are directed. Directed edges connect a {@link
       * EndpointPair#source() source node} to a {@link EndpointPair#target() target node}, while
       * undirected edges connect a pair of nodes to each other.
       */
      boolean isDirected();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/NetworkConnections.java

      Set<N> predecessors();
    
      Set<N> successors();
    
      Set<E> incidentEdges();
    
      Set<E> inEdges();
    
      Set<E> outEdges();
    
      /**
       * Returns the set of edges connecting the origin node to {@code node}. For networks without
       * parallel edges, this set cannot be of size greater than one.
       */
      Set<E> edgesConnecting(N node);
    
      /**
       * Returns the node that is adjacent to the origin node along {@code edge}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/AbstractGraph.java

          return false;
        }
        Graph<?> other = (Graph<?>) obj;
    
        return isDirected() == other.isDirected()
            && nodes().equals(other.nodes())
            && edges().equals(other.edges());
      }
    
      @Override
      public final int hashCode() {
        return edges().hashCode();
      }
    
      /** Returns a string representation of this graph. */
      @Override
      public String toString() {
        return "isDirected: "
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 1.8K bytes
    - Viewed (0)
Back to top