computings components connected to one another

This commit is contained in:
pb
2024-05-16 14:18:06 +02:00
parent a461f3ba1c
commit 73fd329551
2 changed files with 44 additions and 49 deletions

View File

@@ -193,6 +193,7 @@ func (g *Graph) ExportToArgo(id string) error {
// Return a list containing the IDs of each link that make up a branch in the graph
func (g *Graph) getListBranches(end_links map[string]models.Link, unvisited_links_list map[string]models.Link, current_branch []string) (list_branches [][]string) {
if current_branch == nil {
current_branch = make([]string, 0)
}
@@ -296,7 +297,7 @@ func (g *Graph) getComponentName(id string) string {
return ""
}
// returns either computing, data or storage
func (g *Graph) getComponentType(component_id string) string {
for _, comp := range g.Computings {
if comp.ID == component_id{