MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / incoming_edges

Method incoming_edges

python/flowgraph.py:272–290  ·  view source on GitHub ↗

Flow graph block list of incoming edges (read-only)

(self)

Source from the content-addressed store, hash-verified

270
271 @property
272 def incoming_edges(self):
273 """Flow graph block list of incoming edges (read-only)"""
274 count = ctypes.c_ulonglong()
275 edges = core.BNGetFlowGraphNodeIncomingEdges(self.handle, count)
276 assert edges is not None, "core.BNGetFlowGraphNodeIncomingEdges returned None"
277 result = []
278 for i in range(0, count.value):
279 branch_type = BranchType(edges[i].type)
280 target = edges[i].target
281 if target:
282 target = FlowGraphNode(self._graph, core.BNNewFlowGraphNodeReference(target))
283 points = []
284 for j in range(0, edges[i].pointCount):
285 points.append((edges[i].points[j].x, edges[i].points[j].y))
286 result.append(
287 FlowGraphEdge(branch_type, self, target, points, edges[i].backEdge, EdgeStyle(edges[i].style))
288 )
289 core.BNFreeFlowGraphNodeEdgeList(edges, count.value)
290 return result
291
292 @property
293 def highlight(self):

Callers

nothing calls this directly

Calls 5

BranchTypeEnum · 0.85
FlowGraphNodeClass · 0.70
FlowGraphEdgeClass · 0.70
EdgeStyleClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected