MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / list_main

Function list_main

python/graphvite/cmd.py:240–259  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

238
239
240def list_main(args):
241 config_path = get_config_path()
242
243 print("list of baselines")
244 print()
245 indent = " " * 4
246 count = 0
247 for path, dirs, files in os.walk(config_path):
248 path = os.path.relpath(path, config_path)
249 if path == "template":
250 continue
251 depth = path.count("/")
252 if path != ".":
253 depth += 1
254 print("%s%s" % (indent * depth, os.path.basename(path)))
255 for file in sorted(files):
256 print("%s%s" % (indent * (depth + 1), file))
257 count += len(files)
258 print()
259 print("total: %d baselines" % count)
260
261
262command = {

Callers

nothing calls this directly

Calls 3

get_config_pathFunction · 0.85
relpathMethod · 0.80
countMethod · 0.80

Tested by

no test coverage detected