binaryninja.flowgraph.CoreFlowGraph

class CoreFlowGraph(handle)[source]
__init__(handle)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(handle)

Initialize self.

append(node)

append adds a node to a flow graph.

complete_layout()

complete_layout can be overridden by subclasses and is called when a graph layout is completed.

finish_prepare_for_layout()

finish_prepare_for_layout signals that preparations for rendering a graph are complete.

get_nodes_in_region(left, top, right, bottom)

is_option_set(option)

layout([callback])

layout starts rendering a graph for display.

layout_and_wait()

layout_and_wait starts rendering a graph for display, and waits for the graph to be ready to display.

populate_nodes()

prepare_for_layout can be overridden by subclasses to create nodes in a graph when a flow graph needs to be rendered.

prepare_for_layout()

prepare_for_layout can be overridden by subclasses to handling preparations that must take place before a flow graph is rendered, such as waiting for a function to finish analysis.

set_option(option[, value])

show(title)

show displays the graph in a new tab in the UI.

update()

update can be overridden by subclasses to allow a graph to be updated after it has been presented in the UI.

Attributes

allows_inline_instruction_editing

Set if flow graph should allow inline instruction editing (assembly only)

allows_patching

Set if flow graph should allow modification of code from within the graph view

complete

Whether flow graph layout is complete (read-only)

function

Function for a flow graph

has_nodes

Whether the flow graph has at least one node (read-only)

height

Flow graph height (read-only)

horizontal_block_margin

il_function

includes_user_comments

Set if flow graph includes comments made by the user

is_il

is_low_level_il

is_medium_level_il

nodes

List of nodes in graph (read-only)

shows_secondary_reg_highlighting

Set if flow graph should highlight associated registers in the UI

uses_block_highlights

Set if flow graph uses the standard basic block highlighting settings

uses_instruction_highlights

Set if flow graph uses the standard instruction highlighting settings

vertical_block_margin

view

Binary view for a flow graph

width

Flow graph width (read-only)