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

Method __init__

pattern/graph/__init__.py:870–872  ·  view source on GitHub ↗
(self, predecessors, *args, **kwargs)

Source from the content-addressed store, hash-verified

868 p[u][v] = p[w][v]
869 class pdict(dict):
870 def __init__(self, predecessors, *args, **kwargs):
871 dict.__init__(self, *args, **kwargs)
872 self.predecessors = predecessors
873 return pdict(p, ((u, dict((v, w) for v,w in d[u].iteritems() if w < 1e30)) for u in d))
874
875def predecessor_path(tree, u, v):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected