File:Moore diagram of Binary Adding Machine.svg
| Uploaded by | Soul windsurfer |
|---|---|
| Upload date | 2011-10-09T16:01:59Z |
| MIME type | image/svg+xml |
| Dimensions | 233 × 143 px |
| File size | 3.1 KB |
Summary
| Description |
English: Moore diagram of Binary Adding Machine |
| Date | |
| Source | Made with FR package by Laurent Bartholdi |
| Author | Adam majewski |
How it was made
GAP[1] is a CAS software [2]. To run :
/usr/share/gap/bin/gap.sh
Load package fr by Laurent Bartholdi [3]
gap>LoadPackage("fr");
gap>Draw(BinaryAddingMachine,"b.dot");
Saves output to b.dot files :
digraph "BinaryAddingMachine" {
a [shape=circle]
b [shape=circle]
a -> a [label="1/1",color=red];
a -> a [label="2/2",color=blue];
b -> a [label="1/2",color=red];
b -> b [label="2/1",color=blue];
}
Dot file is a text file describing graph in dot language. This a.dot file can be coverted to other formats using command line program dot. For example to svg :
dot -Tsvg b.dot -o b.svg
I have changed manually to :
digraph "BinaryAddingMachine" {
rankdir = "LR";/* from left to right */
size ="6,6"; /* in inches */
/* vertices = nodes */
null0 [shape=point,color=red];
1 [shape=circle,color=red]
0 [shape=circle,color=blue]
/* edges = lines with arrows */
null0-> 1 [color=red];
1 -> 1 [label="1/0",color=red];
0 -> 0 [label="0/0",color=blue];
0 -> 0 [label="1/1",color=blue];
1 -> 0 [label="0/1",color=blue];
}
References
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.