module documentation

Computes the control flow graph for a Python program from its AST.

Class BasicBlock A basic block in a control flow graph.
Class ControlFlowGraph A control flow graph for a Python program.
Class ControlFlowNode A node in a control flow graph.
Class ControlFlowVisitor A visitor for determining the control flow of a Python program from an AST.
Class Frame A Frame indicates how statements affect control flow in parts of a program.
Function get_control_flow_graph Get a ControlFlowGraph for the provided AST node.
def get_control_flow_graph(program): (source)

Get a ControlFlowGraph for the provided AST node.

Parameters
programEither an AST node, source string, or a function.
Returns
A ControlFlowGraph.