MCPcopy Index your code
hub / github.com/devspace-sh/devspace / NewGraph

Function NewGraph

pkg/devspace/dependency/graph/graph.go:18–26  ·  view source on GitHub ↗
(root *Node)

Source from the content-addressed store, hash-verified

16}
17
18func NewGraph(root *Node) *Graph {
19 graph := &Graph{
20 Nodes: make(map[string]*Node),
21 Root: root,
22 }
23
24 graph.Nodes[root.ID] = root
25 return graph
26}
27
28func NewGraphOf(root *Node, item string) *Graph {
29 graph := &Graph{

Callers 3

NewResolverFunction · 0.92
NewDependencyRegistryFunction · 0.92
TestGraphFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGraphFunction · 0.68