Control flow graph (CFG). A control flow graph is composed of basic blocks and links between them representing control flow jumps. It has a unique entry block and several possible 'final' blocks (blocks with no exits representing the end of the CFG).
Static Method | border |
Undocumented |
Static Method | fillcolor |
Undocumented |
Method | __init__ |
Undocumented |
Method | __iter__ |
Generator that yields all the blocks in the current graph, then recursively yields from any sub graphs |
Method | __str__ |
Undocumented |
Method | bsearch |
Search for a block at line |
Method | build |
Build key graph |
Method | build |
Build a visualisation of the CFG with graphviz and output it in a DOT file. |
Method | edge_ |
Undocumented |
Method | edge_ |
Undocumented |
Method | edge_ |
Undocumented |
Method | find |
Undocumented |
Method | highlight |
In interactive mode, highlight the block at lineno |
Method | node_ |
Undocumented |
Method | node_ |
Undocumented |
Method | outline |
In interactive mode, outline the block at lineno |
Method | own |
Generator that yields all blocks in the current graph, excluding any subgraphs |
Method | stylize |
Undocumented |
Method | stylize |
Undocumented |
Constant | DEFAULT |
Undocumented |
Class Variable | node |
Undocumented |
Class Variable | subgraphs |
Undocumented |
Instance Variable | asynchr |
Undocumented |
Instance Variable | classcfgs |
Undocumented |
Instance Variable | end |
Undocumented |
Instance Variable | entryblock |
Undocumented |
Instance Variable | finalblocks |
Undocumented |
Instance Variable | functioncfgs |
Undocumented |
Instance Variable | highlighted |
Undocumented |
Instance Variable | is |
Undocumented |
Instance Variable | lineno |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | outlined |
Undocumented |
Instance Variable | qualname |
Undocumented |
Method | _build |
Undocumented |
Method | _build |
Undocumented |
Method | _edge |
Undocumented |
Method | _style |
Undocumented |
Method | _visit |
Undocumented |
Method | _visit |
Undocumented |
Generator that yields all the blocks in the current graph, then recursively yields from any sub graphs
Returns | |
Iterator[ | Undocumented |
Build a visualisation of the CFG with graphviz and output it in a DOT file. Args: filename: The name of the output file in which the visualisation must be saved. format: The format to use for the output file (PDF, ...). show: A boolean indicating whether to automatically open the output file after building the visualisation.
Parameters | |
filepath:str | Undocumented |
format:str | Undocumented |
calls:bool | Undocumented |
show:bool | Undocumented |
cleanup | Undocumented |
directory | Undocumented |
interactive | Undocumented |
build | Undocumented |
build | Undocumented |
diffable | Undocumented |
Returns | |
str | Undocumented |
Generator that yields all blocks in the current graph, excluding any subgraphs
Returns | |
Iterator[ | Undocumented |