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

Method AddConnect

pkg/controller/graph/dag.go:131–136  ·  view source on GitHub ↗

AddConnect add 'to' to the DAG 'd' and connect 'from' to 'to'

(from, to Vertex)

Source from the content-addressed store, hash-verified

129
130// AddConnect add 'to' to the DAG 'd' and connect 'from' to 'to'
131func (d *DAG) AddConnect(from, to Vertex) bool {
132 if !d.AddVertex(to) {
133 return false
134 }
135 return d.Connect(from, to)
136}
137
138// AddConnectRoot add 'v' to the DAG 'd' and connect root to 'v'
139func (d *DAG) AddConnectRoot(v Vertex) bool {

Callers 6

AddConnectRootMethod · 0.95
TestXConnectFunction · 0.95
DoMethod · 0.80
buildSerialUpdatePlanMethod · 0.80

Calls 2

AddVertexMethod · 0.95
ConnectMethod · 0.95

Tested by 1

TestXConnectFunction · 0.76