File:Moore diagram of Binary Adding Machine.svg

Original file(SVG file, nominally 233 × 143 pixels, file size: 3 KB)

Summary

Description
English: Moore diagram of Binary Adding Machine
Date
Source Made with FR package by Laurent Bartholdi
Author Adam majewski
 
W3C-validity not checked.

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

  1. GAP software at wikipedia
  2. CAS at wikipedia
  3. FR package by Laurent Bartholdi for GAP CAS

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

9 October 2011

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current16:01, 9 October 2011Thumbnail for version as of 16:01, 9 October 2011233 × 143 (3 KB)Soul windsurfercolors
15:41, 9 October 2011Thumbnail for version as of 15:41, 9 October 2011233 × 143 (3 KB)Soul windsurferhorizontali and with different labels
10:53, 9 October 2011Thumbnail for version as of 10:53, 9 October 2011158 × 168 (3 KB)Soul windsurfer

The following page uses this file: