Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
74
func
(v *vertex) addChild(child *vertex) {
75
v.children = append(v.children, child)
76
child.parents = append(child.parents, v)
77
}
78
79
func
(v *vertex) removeChild(child *vertex) {
80
for
_, c :=
range
v.children {
Callers
2
AddEdge
Method · 0.80
AddEdges
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected