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

Function find_all_templates

python/graphvite/helper.py:45–52  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

43
44
45def find_all_templates(module):
46 pattern = re.compile("([^_]+)(?:_[^_]+)+")
47 names = set()
48 for full_name in module.__dict__:
49 result = pattern.match(full_name)
50 if result:
51 names.add(result.group(1))
52 return list(names)
53
54
55def get_any_instantiation(module, name):

Callers 2

solver.pyFile · 0.85
graph.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected