CFGraph¶
- class understand.CFGraph¶
Bases:
objectA control flow graph
Control flow graphs are returned from applicable entities with
understand.Ent.control_flow_graph(). The graph containscontrol flow nodeswhich can be retrieved withnodes. The edges out of each node are given with thechildrenmethod. Some nodes may be unreachable from thestartnode.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