Control flow graph

Материал из WikiGrapp
Перейти к:навигация, поиск

Control flow graphуправляющий граф, уграф, граф потока управления, граф переходов.

A program can be represented as a directed graph (called control flow graph or cf-graph), in which vertices (or nodes) correspond to program statements and arcs reflect possible transfers of control between the corresponding statements. There are initial (or entry) and terminal (or exit) nodes in the graph that correspond to input and output statements of the program. If there is an arc \,(p,q), then \,p is called a predecessor of \,q and \,q is called a successor of \,p.

It is assumed that a control flow graph \,G is a proper one, i.e. \,G has a single initial node without predecessors and a single terminal node without successors, and every node of \,G lies on at least one of the paths from the initial node to the terminal node.


  • Евстигнеев В.А., Касьянов В.Н. Словарь по графам в информатике. — Новосибирск: Сибирское Научное Издательство, 2009.