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

Method outgoing_edges

python/flowgraph.py:251–269  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

249
250 @property
251 def outgoing_edges(self) -> List[FlowGraphEdge]:
252 """Flow graph block list of outgoing edges (read-only)"""
253 count = ctypes.c_ulonglong()
254 edges = core.BNGetFlowGraphNodeOutgoingEdges(self.handle, count)
255 assert edges is not None, "core.BNGetFlowGraphNodeOutgoingEdges returned None"
256 result = []
257 for i in range(0, count.value):
258 branch_type = BranchType(edges[i].type)
259 target = edges[i].target
260 if target:
261 target = FlowGraphNode(self._graph, core.BNNewFlowGraphNodeReference(target))
262 points = []
263 for j in range(0, edges[i].pointCount):
264 points.append((edges[i].points[j].x, edges[i].points[j].y))
265 result.append(
266 FlowGraphEdge(branch_type, self, target, points, edges[i].backEdge, EdgeStyle(edges[i].style))
267 )
268 core.BNFreeFlowGraphNodeEdgeList(edges, count.value)
269 return result
270
271 @property
272 def incoming_edges(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