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

Method add_edge

persper/analytics/call_commit_graph.py:89–96  ·  view source on GitHub ↗
(self, source, target)

Source from the content-addressed store, hash-verified

87
88 # add_node must be called on source and target first
89 def add_edge(self, source, target):
90 if source not in self._digraph:
91 raise ValueError("Error: caller %s does not exist in call-commit graph." % source)
92 if target not in self._digraph:
93 raise ValueError("Error: callee %s does not exist in call-commit graph." % target)
94 self._digraph.add_edge(source, target,
95 addedBy=self._current_commit_id,
96 weight=None)
97
98 def update_node_history(self, node, num_adds, num_dels):
99 node_history = self._get_node_history(node)

Callers 8

test_call_commit_graphFunction · 0.95
test_devrankFunction · 0.80
add_edgeFunction · 0.80
handle_func_nodeFunction · 0.80
build_call_graph_cFunction · 0.80
handle_func_nodeFunction · 0.80
update_graphFunction · 0.80
addMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_call_commit_graphFunction · 0.76
test_devrankFunction · 0.64