{"algorithm":"gabow","about":["Gabow's algorithm finds the strongly connected components in one depth-first search, as Tarjan's does, but without lowlink values. It keeps two stacks. The first holds the vertices the search has reached that aren't in a component yet. The second holds the vertices on the current path that could still be the first vertex of a component.","When an edge leads to a vertex still on the first stack, every vertex on the path after it is in the same component, so the second stack is popped back to it. When the search finishes a vertex that is still on top of the second stack, that vertex starts a component. The first stack is popped down to it, and those vertices form the component.","It costs O(V+E). On the same graph, Tarjan's and Gabow's algorithms find the same components in the same order. They differ only in how they tell that the search has finished one."],"template":{"id":"import-cycles","name":"Import cycles","description":"Eighteen packages of a Python web app. Each edge is an import, and some packages import each other in a loop.","family":"cyclic","directed":true,"weighted":false,"acyclic":false,"vertices":[{"id":"main","x":500,"y":80},{"id":"cli","x":180,"y":240},{"id":"api","x":560,"y":200},{"id":"config","x":860,"y":320},{"id":"handlers","x":420,"y":340},{"id":"middleware","x":680,"y":370},{"id":"auth","x":720,"y":470},{"id":"session","x":700,"y":640},{"id":"users","x":480,"y":540},{"id":"billing","x":280,"y":470},{"id":"invoices","x":300,"y":650},{"id":"models","x":480,"y":790},{"id":"db","x":180,"y":800},{"id":"cache","x":320,"y":900},{"id":"email","x":700,"y":800},{"id":"templates","x":880,"y":860},{"id":"utils","x":900,"y":480},{"id":"logging","x":900,"y":660}],"edges":[{"from":"main","to":"cli"},{"from":"main","to":"api"},{"from":"main","to":"config"},{"from":"cli","to":"config"},{"from":"cli","to":"db"},{"from":"api","to":"handlers"},{"from":"api","to":"middleware"},{"from":"api","to":"config"},{"from":"handlers","to":"auth"},{"from":"handlers","to":"users"},{"from":"handlers","to":"billing"},{"from":"middleware","to":"auth"},{"from":"middleware","to":"logging"},{"from":"auth","to":"session"},{"from":"session","to":"users"},{"from":"users","to":"auth"},{"from":"users","to":"billing"},{"from":"users","to":"models"},{"from":"billing","to":"invoices"},{"from":"invoices","to":"users"},{"from":"invoices","to":"models"},{"from":"invoices","to":"email"},{"from":"models","to":"db"},{"from":"db","to":"cache"},{"from":"cache","to":"models"},{"from":"email","to":"templates"},{"from":"templates","to":"email"},{"from":"config","to":"utils"},{"from":"utils","to":"logging"},{"from":"logging","to":"utils"}],"details":{"vertices":18,"edges":30,"directed":true,"weighted":false,"acyclic":false,"negativeWeights":false,"density":0.09803921568627451,"inDegree":{"min":0,"avg":1.6666666666666667,"max":3},"outDegree":{"min":1,"avg":1.6666666666666667,"max":3},"selfLoops":0,"components":1}},"problem":"Which groups of packages import each other in a loop, so that none of them can load without the others?","params":{},"result":{"kind":"groups","groups":[["logging","utils"],["config"],["cache","db","models"],["cli"],["email","templates"],["auth","billing","invoices","session","users"],["handlers"],["middleware"],["api"],["main"]]},"answer":"The graph has 10 strongly connected components. The ones with more than one vertex are logging and utils; cache, db and models; email and templates; auth, billing, invoices, session and users. The other 6 components have one vertex each: config, cli, handlers, middleware, api and main.","legend":{"vertex":[{"id":"idle","label":"Not reached","color":"#64748B","shape":"hollow"},{"id":"current","label":"On the search path","color":"#56B4E9","shape":"ring"},{"id":"waiting","label":"Finished, still on S","color":"#E69F00","shape":"dashed-square"},{"id":"done","label":"In a component","color":"#009E73","shape":"filled"},{"id":"component-1","label":"Component 1, 2 vertices","color":"#56B4E9","shape":"filled"},{"id":"component-3","label":"Component 3, 3 vertices","color":"#CC79A7","shape":"dashed-square"},{"id":"component-5","label":"Component 5, 2 vertices","color":"#E69F00","shape":"filled"},{"id":"component-6","label":"Component 6, 5 vertices","color":"#F0E442","shape":"dashed-square"},{"id":"single","label":"A component of one vertex","color":"#CBD5E1","shape":"hollow"}],"edge":[{"id":"idle","label":"Edge","color":"#475569","shape":"line"},{"id":"tree","label":"Used to reach a vertex","color":"#009E73","shape":"thick"},{"id":"examined","label":"Leads to a vertex on S","color":"#CC79A7","shape":"dashed"}],"panels":[{"id":"s","title":"S, reached and not placed, top first","kind":"list"},{"id":"p","title":"P, possible roots, top first","kind":"list"},{"id":"components","title":"Components found","kind":"groups"}]},"steps":[{"say":"Gabow's path-based algorithm searches depth-first from each vertex no earlier search has reached, in the graph's vertex order, and numbers the vertices in the order it reaches them. Stack S holds every vertex reached but not yet placed in a component. Stack P holds the vertices on the search path that can still be the root of a component. An edge to a vertex still on S closes a cycle, so P loses every vertex numbered above that vertex. When a vertex finishes on top of P, it is the root of a component: it and the vertices above it on S form one strongly connected component."},{"say":"Start at main, the first vertex. main gets number 0 and goes on S and P.","ops":[{"v":"main","state":"current"},{"panel":"s","list":[{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"main","note":"0"}]}]},{"say":"Follow main to cli. cli gets number 1 and goes on S and P.","ops":[{"e":["main","cli"],"state":"tree"},{"v":"cli","state":"current"},{"panel":"s","list":[{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"cli","note":"1"},{"key":"main","note":"0"}]}]},{"say":"Follow cli to config. config gets number 2 and goes on S and P.","ops":[{"e":["cli","config"],"state":"tree"},{"v":"config","state":"current"},{"panel":"s","list":[{"key":"config","note":"2"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"config","note":"2"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]}]},{"say":"Follow config to utils. utils gets number 3 and goes on S and P.","ops":[{"e":["config","utils"],"state":"tree"},{"v":"utils","state":"current"},{"panel":"s","list":[{"key":"utils","note":"3"},{"key":"config","note":"2"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"utils","note":"3"},{"key":"config","note":"2"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]}]},{"say":"Follow utils to logging. logging gets number 4 and goes on S and P.","ops":[{"e":["utils","logging"],"state":"tree"},{"v":"logging","state":"current"},{"panel":"s","list":[{"key":"logging","note":"4"},{"key":"utils","note":"3"},{"key":"config","note":"2"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"logging","note":"4"},{"key":"utils","note":"3"},{"key":"config","note":"2"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]}]},{"say":"logging has an edge to utils, which is still on S with number 3. That closes a cycle through utils, so every vertex on P numbered above 3 is in the same component as utils and can't be its root. Pop logging off P.","ops":[{"panel":"p","list":[{"key":"utils","note":"3"},{"key":"config","note":"2"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"e":["logging","utils"],"state":"examined"}]},{"say":"logging has no edges left to check. The top of P is utils, so logging is not a root and stays on S. Back to utils.","ops":[{"v":"logging","state":"waiting"}]},{"say":"utils has no edges left to check. It is on top of P, so it is the root of a component. Pop it off P, and pop S down to utils. logging and utils form component 1. Back to config.","ops":[{"panel":"s","list":[{"key":"config","note":"2"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"config","note":"2"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"v":"logging","state":"done"},{"v":"utils","state":"done"},{"panel":"components","groups":[["logging","utils"]]}]},{"say":"config has no edges left to check. It is on top of P, so it is the root of a component. Pop it off P and S. config is component 2 on its own. Back to cli.","ops":[{"panel":"s","list":[{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"v":"config","state":"done"},{"panel":"components","groups":[["logging","utils"],["config"]]}]},{"say":"Follow cli to db. db gets number 5 and goes on S and P.","ops":[{"e":["cli","db"],"state":"tree"},{"v":"db","state":"current"},{"panel":"s","list":[{"key":"db","note":"5"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"db","note":"5"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]}]},{"say":"Follow db to cache. cache gets number 6 and goes on S and P.","ops":[{"e":["db","cache"],"state":"tree"},{"v":"cache","state":"current"},{"panel":"s","list":[{"key":"cache","note":"6"},{"key":"db","note":"5"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"cache","note":"6"},{"key":"db","note":"5"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]}]},{"say":"Follow cache to models. models gets number 7 and goes on S and P.","ops":[{"e":["cache","models"],"state":"tree"},{"v":"models","state":"current"},{"panel":"s","list":[{"key":"models","note":"7"},{"key":"cache","note":"6"},{"key":"db","note":"5"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"models","note":"7"},{"key":"cache","note":"6"},{"key":"db","note":"5"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]}]},{"say":"models has an edge to db, which is still on S with number 5. That closes a cycle through db, so every vertex on P numbered above 5 is in the same component as db and can't be its root. Pop models and cache off P.","ops":[{"panel":"p","list":[{"key":"db","note":"5"},{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"e":["models","db"],"state":"examined"}]},{"say":"models has no edges left to check. The top of P is db, so models is not a root and stays on S. Back to cache.","ops":[{"v":"models","state":"waiting"}]},{"say":"cache has no edges left to check. The top of P is db, so cache is not a root and stays on S. Back to db.","ops":[{"v":"cache","state":"waiting"}]},{"say":"db has no edges left to check. It is on top of P, so it is the root of a component. Pop it off P, and pop S down to db. models, cache and db form component 3. Back to cli.","ops":[{"panel":"s","list":[{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"cli","note":"1"},{"key":"main","note":"0"}]},{"v":"models","state":"done"},{"v":"cache","state":"done"},{"v":"db","state":"done"},{"panel":"components","groups":[["logging","utils"],["config"],["models","cache","db"]]}]},{"say":"cli has no edges left to check. It is on top of P, so it is the root of a component. Pop it off P and S. cli is component 4 on its own. Back to main.","ops":[{"panel":"s","list":[{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"main","note":"0"}]},{"v":"cli","state":"done"},{"panel":"components","groups":[["logging","utils"],["config"],["models","cache","db"],["cli"]]}]},{"say":"Follow main to api. api gets number 8 and goes on S and P.","ops":[{"e":["main","api"],"state":"tree"},{"v":"api","state":"current"},{"panel":"s","list":[{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"api","note":"8"},{"key":"main","note":"0"}]}]},{"say":"Follow api to handlers. handlers gets number 9 and goes on S and P.","ops":[{"e":["api","handlers"],"state":"tree"},{"v":"handlers","state":"current"},{"panel":"s","list":[{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]}]},{"say":"Follow handlers to auth. auth gets number 10 and goes on S and P.","ops":[{"e":["handlers","auth"],"state":"tree"},{"v":"auth","state":"current"},{"panel":"s","list":[{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]}]},{"say":"Follow auth to session. session gets number 11 and goes on S and P.","ops":[{"e":["auth","session"],"state":"tree"},{"v":"session","state":"current"},{"panel":"s","list":[{"key":"session","note":"11"},{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"session","note":"11"},{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]}]},{"say":"Follow session to users. users gets number 12 and goes on S and P.","ops":[{"e":["session","users"],"state":"tree"},{"v":"users","state":"current"},{"panel":"s","list":[{"key":"users","note":"12"},{"key":"session","note":"11"},{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"users","note":"12"},{"key":"session","note":"11"},{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]}]},{"say":"users has an edge to auth, which is still on S with number 10. That closes a cycle through auth, so every vertex on P numbered above 10 is in the same component as auth and can't be its root. Pop users and session off P.","ops":[{"panel":"p","list":[{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"e":["users","auth"],"state":"examined"}]},{"say":"Follow users to billing. billing gets number 13 and goes on S and P.","ops":[{"e":["users","billing"],"state":"tree"},{"v":"billing","state":"current"},{"panel":"s","list":[{"key":"billing","note":"13"},{"key":"users","note":"12"},{"key":"session","note":"11"},{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"billing","note":"13"},{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]}]},{"say":"Follow billing to invoices. invoices gets number 14 and goes on S and P.","ops":[{"e":["billing","invoices"],"state":"tree"},{"v":"invoices","state":"current"},{"panel":"s","list":[{"key":"invoices","note":"14"},{"key":"billing","note":"13"},{"key":"users","note":"12"},{"key":"session","note":"11"},{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"invoices","note":"14"},{"key":"billing","note":"13"},{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]}]},{"say":"invoices has an edge to users, which is still on S with number 12. That closes a cycle through users, so every vertex on P numbered above 12 is in the same component as users and can't be its root. Pop invoices and billing off P.","ops":[{"panel":"p","list":[{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"e":["invoices","users"],"state":"examined"}]},{"say":"The edge from invoices to models leads to a vertex already in a component, so it is skipped. Follow invoices to email. email gets number 15 and goes on S and P.","ops":[{"e":["invoices","email"],"state":"tree"},{"v":"email","state":"current"},{"panel":"s","list":[{"key":"email","note":"15"},{"key":"invoices","note":"14"},{"key":"billing","note":"13"},{"key":"users","note":"12"},{"key":"session","note":"11"},{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"email","note":"15"},{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]}]},{"say":"Follow email to templates. templates gets number 16 and goes on S and P.","ops":[{"e":["email","templates"],"state":"tree"},{"v":"templates","state":"current"},{"panel":"s","list":[{"key":"templates","note":"16"},{"key":"email","note":"15"},{"key":"invoices","note":"14"},{"key":"billing","note":"13"},{"key":"users","note":"12"},{"key":"session","note":"11"},{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"templates","note":"16"},{"key":"email","note":"15"},{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]}]},{"say":"templates has an edge to email, which is still on S with number 15. That closes a cycle through email, so every vertex on P numbered above 15 is in the same component as email and can't be its root. Pop templates off P.","ops":[{"panel":"p","list":[{"key":"email","note":"15"},{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"e":["templates","email"],"state":"examined"}]},{"say":"templates has no edges left to check. The top of P is email, so templates is not a root and stays on S. Back to email.","ops":[{"v":"templates","state":"waiting"}]},{"say":"email has no edges left to check. It is on top of P, so it is the root of a component. Pop it off P, and pop S down to email. templates and email form component 5. Back to invoices.","ops":[{"panel":"s","list":[{"key":"invoices","note":"14"},{"key":"billing","note":"13"},{"key":"users","note":"12"},{"key":"session","note":"11"},{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"auth","note":"10"},{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"v":"templates","state":"done"},{"v":"email","state":"done"},{"panel":"components","groups":[["logging","utils"],["config"],["models","cache","db"],["cli"],["templates","email"]]}]},{"say":"invoices has no edges left to check. The top of P is auth, so invoices is not a root and stays on S. Back to billing.","ops":[{"v":"invoices","state":"waiting"}]},{"say":"billing has no edges left to check. The top of P is auth, so billing is not a root and stays on S. Back to users.","ops":[{"v":"billing","state":"waiting"}]},{"say":"The edge from users to models leads to a vertex already in a component, so it is skipped. users has no edges left to check. The top of P is auth, so users is not a root and stays on S. Back to session.","ops":[{"v":"users","state":"waiting"}]},{"say":"session has no edges left to check. The top of P is auth, so session is not a root and stays on S. Back to auth.","ops":[{"v":"session","state":"waiting"}]},{"say":"auth has no edges left to check. It is on top of P, so it is the root of a component. Pop it off P, and pop S down to auth. invoices, billing, users, session and auth form component 6. Back to handlers.","ops":[{"panel":"s","list":[{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"handlers","note":"9"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"v":"invoices","state":"done"},{"v":"billing","state":"done"},{"v":"users","state":"done"},{"v":"session","state":"done"},{"v":"auth","state":"done"},{"panel":"components","groups":[["logging","utils"],["config"],["models","cache","db"],["cli"],["templates","email"],["invoices","billing","users","session","auth"]]}]},{"say":"The edges from handlers to users and billing lead to vertices already in components, so they are skipped. handlers has no edges left to check. It is on top of P, so it is the root of a component. Pop it off P and S. handlers is component 7 on its own. Back to api.","ops":[{"panel":"s","list":[{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"v":"handlers","state":"done"},{"panel":"components","groups":[["logging","utils"],["config"],["models","cache","db"],["cli"],["templates","email"],["invoices","billing","users","session","auth"],["handlers"]]}]},{"say":"Follow api to middleware. middleware gets number 17 and goes on S and P.","ops":[{"e":["api","middleware"],"state":"tree"},{"v":"middleware","state":"current"},{"panel":"s","list":[{"key":"middleware","note":"17"},{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"middleware","note":"17"},{"key":"api","note":"8"},{"key":"main","note":"0"}]}]},{"say":"The edges from middleware to auth and logging lead to vertices already in components, so they are skipped. middleware has no edges left to check. It is on top of P, so it is the root of a component. Pop it off P and S. middleware is component 8 on its own. Back to api.","ops":[{"panel":"s","list":[{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"api","note":"8"},{"key":"main","note":"0"}]},{"v":"middleware","state":"done"},{"panel":"components","groups":[["logging","utils"],["config"],["models","cache","db"],["cli"],["templates","email"],["invoices","billing","users","session","auth"],["handlers"],["middleware"]]}]},{"say":"The edge from api to config leads to a vertex already in a component, so it is skipped. api has no edges left to check. It is on top of P, so it is the root of a component. Pop it off P and S. api is component 9 on its own. Back to main.","ops":[{"panel":"s","list":[{"key":"main","note":"0"}]},{"panel":"p","list":[{"key":"main","note":"0"}]},{"v":"api","state":"done"},{"panel":"components","groups":[["logging","utils"],["config"],["models","cache","db"],["cli"],["templates","email"],["invoices","billing","users","session","auth"],["handlers"],["middleware"],["api"]]}]},{"say":"The edge from main to config leads to a vertex already in a component, so it is skipped. main has no edges left to check. It is on top of P, so it is the root of a component. Pop it off P and S. main is component 10 on its own.","ops":[{"panel":"s","list":[]},{"panel":"p","list":[]},{"v":"main","state":"done"},{"panel":"components","groups":[["logging","utils"],["config"],["models","cache","db"],["cli"],["templates","email"],["invoices","billing","users","session","auth"],["handlers"],["middleware"],["api"],["main"]]}]},{"say":"Done. Gabow found 10 strongly connected components, 6 of them with one vertex. Each component is listed after every component it has an edge into. Every vertex now shows the component it belongs to.","ops":[{"v":"logging","state":"component-1"},{"v":"utils","state":"component-1"},{"v":"config","state":"single"},{"v":"models","state":"component-3"},{"v":"cache","state":"component-3"},{"v":"db","state":"component-3"},{"v":"cli","state":"single"},{"v":"templates","state":"component-5"},{"v":"email","state":"component-5"},{"v":"invoices","state":"component-6"},{"v":"billing","state":"component-6"},{"v":"users","state":"component-6"},{"v":"session","state":"component-6"},{"v":"auth","state":"component-6"},{"v":"handlers","state":"single"},{"v":"middleware","state":"single"},{"v":"api","state":"single"},{"v":"main","state":"single"}]}],"traceNote":"","verification":"The steps come from a step-by-step copy of the algorithm. Its result is checked against gograph's on every start.","snippet":"for _, component := range connectivity.Gabow(g) {\n\tvar names []string\n\tfor _, v := range component {\n\t\tnames = append(names, v.Label())\n\t}\n\tfmt.Println(strings.Join(names, \", \"))\n}"}
