CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418346
1
2
8. Drawing automata
3
4
The drawing of graphs described here uses  graphviz  , a software for
5
drawing graphs developed at AT & T Labs, that can be obtained at 
6
http://www.research.att.com/sw/tools/graphviz/  .
7
8
9
8.1 Installing some external programs
10
11
If you work under  LINUX  , you should install graphviz and create the
12
directory  ~ /dot-tmp  .
13
14
15
8.2 Functions to draw automata
16
17
8.2-1 DrawAutomaton
18
19
> DrawAutomaton( A[, file] ) _______________________________________function
20
21
This function draws automaton  A  writing the needed data in file ~
22
/dot-tmp/file.
23
24
8.2-2 DrawAutomata
25
26
> DrawAutomata( A, B[, file] ) _____________________________________function
27
28
This function tests if automaton  A  is a subautomaton of  B  in which case
29
draws  B  highlighting the edges not in  A  by drawing them in a dotted
30
style, while the others are drawn in a plain style and writes the needed
31
data in file ~ /dot-tmp/file.
32
33
8.2-3 DrawGraph
34
35
> DrawGraph( G[, file] ) ___________________________________________function
36
37
Draws a graph specified as an adjacency list  G  and writes the needed data
38
in file ~ /dot-tmp/file.
39
40
8.2-4 DrawSCCAutomaton
41
42
> DrawSCCAutomaton( A[, file] ) ____________________________________function
43
44
Draws automaton  A  and highlights it's strongly connected components by
45
drawing their edges in a dotted style and their vertices in a lighter
46
colour. Writes the needed data in file ~ /dot-tmp/file.
47
48
49