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

Function add_edge

persper/graphs/commit_graph.py:27–31  ·  view source on GitHub ↗
(G, sp, ep, func_id)

Source from the content-addressed store, hash-verified

25 RUBY = 2
26
27def add_edge(G, sp, ep, func_id):
28 if ep in G[sp]:
29 G[sp][ep]['func_ids'].append(func_id)
30 else:
31 G.add_edge(sp, ep, func_ids=[func_id])
32
33def intersected(a, b):
34 return a[0] <= b[0] <= a[1] or b[0] <= a[0] <= b[1]

Callers 3

on_deleteMethod · 0.85
on_renameMethod · 0.85
on_modifyMethod · 0.85

Calls 1

add_edgeMethod · 0.80

Tested by

no test coverage detected