From fc970889b8e5e958bf9e3a412c5315370114937a Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Sun, 19 Jul 2020 22:25:48 +0800 Subject: [PATCH] feat: make it works --- pkg/application/arch/tequila/incl_viz.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/application/arch/tequila/incl_viz.go b/pkg/application/arch/tequila/incl_viz.go index 957b4ad..49a3269 100644 --- a/pkg/application/arch/tequila/incl_viz.go +++ b/pkg/application/arch/tequila/incl_viz.go @@ -1,7 +1,6 @@ package tequila import ( - "fmt" "github.com/awalterschulze/gographviz" "sort" "strconv" @@ -203,12 +202,10 @@ func (fullGraph *FullGraph) buildGraphNode(subgraph string, current *GraphNode, if len(current.children) > 0 { for _, child := range current.children { - fmt.Println(current.text) fullGraph.buildGraphNode(layerName, child, graph, nodes) } } else { - fmt.Println(layerName, current.text, fullGraph.nodeIndex) - _ = graph.AddNode(layerName, "node"+strconv.Itoa(fullGraph.nodeIndex), fullGraph.buildRelationAttr(current.text)) + _ = graph.AddNode(subgraph, "node"+strconv.Itoa(fullGraph.nodeIndex), fullGraph.buildRelationAttr(current.text)) nodes[current.text] = "node" + strconv.Itoa(fullGraph.nodeIndex) fullGraph.nodeIndex++ } -- GitLab