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

Method create_graph

python/function.py:2221–2230  ·  view source on GitHub ↗
(
	    self, graph_type: FunctionViewTypeOrName = FunctionGraphType.NormalFunctionGraph,
	    settings: Optional['DisassemblySettings'] = None
	)

Source from the content-addressed store, hash-verified

2219 return result
2220
2221 def create_graph(
2222 self, graph_type: FunctionViewTypeOrName = FunctionGraphType.NormalFunctionGraph,
2223 settings: Optional['DisassemblySettings'] = None
2224 ) -> flowgraph.CoreFlowGraph:
2225 if settings is not None:
2226 settings_obj = settings.handle
2227 else:
2228 settings_obj = None
2229 graph_type = FunctionViewType(graph_type)._to_core_struct()
2230 return flowgraph.CoreFlowGraph(core.BNCreateFunctionGraph(self.handle, graph_type, settings_obj))
2231
2232 def apply_imported_types(self, sym: 'types.CoreSymbol', type: Optional[StringOrType] = None) -> None:
2233 if isinstance(type, str):

Callers 1

render_svgFunction · 0.45

Calls 3

CoreFlowGraphMethod · 0.80
FunctionViewTypeClass · 0.70
_to_core_structMethod · 0.45

Tested by

no test coverage detected