MCPcopy
hub / github.com/google/mangle / addEdge

Method addEdge

analysis/stratification.go:109–118  ·  view source on GitHub ↗
(src ast.PredicateSym, dest ast.PredicateSym, negated bool)

Source from the content-addressed store, hash-verified

107}
108
109func (dep depGraph) addEdge(src ast.PredicateSym, dest ast.PredicateSym, negated bool) {
110 edges := dep[src]
111 if negated {
112 edges[dest] = negated
113 return
114 }
115 if wasNegated, ok := edges[dest]; !ok || !wasNegated {
116 edges[dest] = false
117 }
118}
119
120func (dep depGraph) transpose() depGraph {
121 rev := make(depGraph)

Callers 3

makeDepGraphFunction · 0.80
transposeMethod · 0.80
buildTemporalDepGraphFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected