MCPcopy Create free account
hub / github.com/DoNewsCode/core / addChild

Method addChild

dag/vertex.go:74–77  ·  view source on GitHub ↗
(child *vertex)

Source from the content-addressed store, hash-verified

72}
73
74func (v *vertex) addChild(child *vertex) {
75 v.children = append(v.children, child)
76 child.parents = append(child.parents, v)
77}
78
79func (v *vertex) removeChild(child *vertex) {
80 for _, c := range v.children {

Callers 2

AddEdgeMethod · 0.80
AddEdgesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected