This class represents the control flow graph of an R program. The control flow may be hierarchical when confronted with function definitions (see CfgSimpleVertex and CFG#rootVertexIds|rootVertexIds()).

There are two very simple visitors to traverse a CFG:

  • visitCfgInOrder visits the graph in the order of the vertices
  • visitCfgInReverseOrder visits the graph in reverse order

If you want to prohibit modification, please refer to the ReadOnlyControlFlowGraph interface.

Type Parameters

Implements

Constructors

Methods

  • Returns true if the graph may contain basic blocks and false if we know that it does not. This can be used for optimizations.

    Returns boolean