List of nodes in graph (read-only)
(self)
| 577 | |
| 578 | @property |
| 579 | def nodes(self): |
| 580 | """List of nodes in graph (read-only)""" |
| 581 | count = ctypes.c_ulonglong() |
| 582 | blocks = core.BNGetFlowGraphNodes(self.handle, count) |
| 583 | assert blocks is not None, "core.BNGetFlowGraphNodes returned None" |
| 584 | result = [] |
| 585 | for i in range(0, count.value): |
| 586 | fg_node = core.BNNewFlowGraphNodeReference(blocks[i]) |
| 587 | assert fg_node is not None, "core.BNNewFlowGraphNodeReference returned None" |
| 588 | result.append(FlowGraphNode(self, fg_node)) |
| 589 | core.BNFreeFlowGraphNodeList(blocks, count.value) |
| 590 | return result |
| 591 | |
| 592 | @property |
| 593 | def node_count(self) -> int: |
nothing calls this directly
no test coverage detected