Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
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
Project: cocalc-sagemath-dev-slelievre
Views: 4183461[1m[4m[31m8. Drawing automata[0m23The drawing of graphs described here uses [22m[32m graphviz [0m , a software for4drawing graphs developed at AT & T Labs, that can be obtained at [22m[32m5http://www.research.att.com/sw/tools/graphviz/ [0m .678[1m[4m[31m8.1 Installing some external programs[0m910If you work under [22m[32m LINUX [0m , you should install graphviz and create the11directory [22m[32m ~ /dot-tmp [0m .121314[1m[4m[31m8.2 Functions to draw automata[0m1516[1m[4m[31m8.2-1 DrawAutomaton[0m1718[1m[34m> DrawAutomaton( [0m[22m[34mA[, file][0m[1m[34m ) _______________________________________[0mfunction1920This function draws automaton [22m[32m A [0m writing the needed data in file ~21/dot-tmp/file.2223[1m[4m[31m8.2-2 DrawAutomata[0m2425[1m[34m> DrawAutomata( [0m[22m[34mA, B[, file][0m[1m[34m ) _____________________________________[0mfunction2627This function tests if automaton [22m[32m A [0m is a subautomaton of [22m[32m B [0m in which case28draws [22m[32m B [0m highlighting the edges not in [22m[32m A [0m by drawing them in a dotted29style, while the others are drawn in a plain style and writes the needed30data in file ~ /dot-tmp/file.3132[1m[4m[31m8.2-3 DrawGraph[0m3334[1m[34m> DrawGraph( [0m[22m[34mG[, file][0m[1m[34m ) ___________________________________________[0mfunction3536Draws a graph specified as an adjacency list [22m[32m G [0m and writes the needed data37in file ~ /dot-tmp/file.3839[1m[4m[31m8.2-4 DrawSCCAutomaton[0m4041[1m[34m> DrawSCCAutomaton( [0m[22m[34mA[, file][0m[1m[34m ) ____________________________________[0mfunction4243Draws automaton [22m[32m A [0m and highlights it's strongly connected components by44drawing their edges in a dotted style and their vertices in a lighter45colour. Writes the needed data in file ~ /dot-tmp/file.46474849