(self, source, target)
| 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) |
no outgoing calls