CFGraph — Understand Python API 0.1 documentation (original) (raw)
class understand.CFGraph¶
Bases: object
A control flow graph
Control flow graphs are returned from applicable entities withunderstand.Ent.control_flow_graph(). The graph contains control flow nodes which can be retrieved with nodes. The edges out of each node are given with thechildren method. Some nodes may be unreachable from the start node.
Methods Summary
| is_trivial | Return True if the graph is trivial. |
|---|---|
| nodes | Return a list of all nodes in the graph |
| start | 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