MCPcopy
hub / github.com/apecloud/kubeblocks / AddVertex

Method AddVertex

pkg/controller/graph/dag.go:59–65  ·  view source on GitHub ↗

AddVertex puts 'v' into 'd'

(v Vertex)

Source from the content-addressed store, hash-verified

57
58// AddVertex puts 'v' into 'd'
59func (d *DAG) AddVertex(v Vertex) bool {
60 if v == nil {
61 return false
62 }
63 d.vertices[v] = v
64 return true
65}
66
67// RemoveVertex deletes 'v' from 'd'
68// the in&out edges are also deleted

Callers 14

newReconcilerTreeFunction · 0.95
AddConnectMethod · 0.95
TestAddVertexFunction · 0.95
TestRemoveVertexFunction · 0.95
TestXConnectFunction · 0.95
TestValidateFunction · 0.95
TestEqualsFunction · 0.95
TestMergeFunction · 0.95
newTestDAGFunction · 0.95
TransformMethod · 0.80
RootMethod · 0.80

Calls

no outgoing calls

Tested by 7

TestAddVertexFunction · 0.76
TestRemoveVertexFunction · 0.76
TestXConnectFunction · 0.76
TestValidateFunction · 0.76
TestEqualsFunction · 0.76
TestMergeFunction · 0.76
newTestDAGFunction · 0.76