MCPcopy Index your code
hub / github.com/clips/pattern / halo

Function halo

pattern/graph/commonsense.py:55–56  ·  view source on GitHub ↗
(concept, depth=2)

Source from the content-addressed store, hash-verified

53 return self._properties
54
55def halo(concept, depth=2):
56 return concept.flatten(depth=depth)
57
58def properties(concept, depth=2, centrality=BETWEENNESS):
59 g = concept.graph.copy(nodes=halo(concept, depth))

Callers 1

propertiesFunction · 0.85

Calls 1

flattenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…