computings components connected to one another
This commit is contained in:
3
graph.go
3
graph.go
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user