Categories of graphs
We divide the nodes of the graph into three kinds:
Having characterized nodes as value, central, or process nodes, we can
do the same thing for graphs:
- A value graph contains only value nodes. It has no
incoming or outgoing control arcs. For example:
- A central graph contains only value nodes and central
nodes. It has no incoming or outgoing control arcs. For example:
- A process graph contains nodes of any colour. It has
one incoming and one outgoing control arc. For example:
The radio buttons `Value', `Central' and `Process' show the category of
the program's flow graph.
Anyone interested in the categorical basis of the applet should read
the companion paper
Premonoidal categories and a graphical view of programs
but be warned, a knowledge of category theory is expected!
Previous |
Next