Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DelEdge (0.16 sec)

  1. src/internal/dag/parse.go

    	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 {
    	return g.edges[from] != nil && g.edges[from][to]
    }
    
    func (g *Graph) Edges(from string) []string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top