CFGraph¶
- class understand.CFGraph¶
Bases:
object
A control flow graph
Control flow graphs are returned from applicable entities with
understand.Ent.control_flow_graph()
. The graph containscontrol flow nodes
which can be retrieved withnodes
. The edges out of each node are given with thechildren
method. Some nodes may be unreachable from thestart
node.Methods Summary
Return True if the graph is trivial.
Return a list of all nodes in the graph
Return the start node of the graph.
Methods Documentation
- is_trivial()¶
Return True if the graph is trivial.
- Return type:
bool
- Returns:
True if the graph is trivial
- nodes()¶
Return a list of all nodes in the graph
- Return type:
list[understand.CFNode]
- Returns:
all nodes in the graph
- start()¶
Return the start node of the graph.
- Return type:
- Returns:
the start node