MCPcopy Create free account
hub / github.com/blacklanternsecurity/bbot / add_rel

Function add_rel

bbot/scripts/docs.py:61–66  ·  view source on GitHub ↗
(incoming, outgoing, t)

Source from the content-addressed store, hash-verified

59 entities[e_id]["produces"].append(m_id)
60
61 def add_rel(incoming, outgoing, t):
62 if incoming == "*" or outgoing == "*":
63 return
64 i_id = entity_lookup_table[incoming]
65 o_id = entity_lookup_table[outgoing]
66 rels.append({"source": i_id, "target": o_id, "type": t})
67
68 # create all the module <--> event type relationships
69 for module, preloaded in preloaded_mods:

Callers 1

gen_chord_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…