MCPcopy Create free account
hub / github.com/Persper/code-analytics / __init__

Method __init__

persper/analytics/call_commit_graph.py:33–39  ·  view source on GitHub ↗
(self, node_link_data=None, commit_id_generator=CommitIdGenerators.fromHexsha)

Source from the content-addressed store, hash-verified

31class CallCommitGraph:
32
33 def __init__(self, node_link_data=None, commit_id_generator=CommitIdGenerators.fromHexsha):
34 if node_link_data:
35 self._digraph = json_graph.node_link_graph(node_link_data)
36 else:
37 self._digraph = self._new_graph()
38 self._commit_id_generator = commit_id_generator
39 self._current_commit_id = None
40
41 def reset(self):
42 self._digraph = self._new_graph()

Callers

nothing calls this directly

Calls 1

_new_graphMethod · 0.95

Tested by

no test coverage detected