Consider the set of students and the set of colors . Say that Jim is wearing a Red shirt, John is wearing a Black shirt, Mary is wearing a Purple shirt and Beth is wearing a Red shirt. Let be the relation between the students and the color of shirt they are wearing.
Use this website to create images of graphs online. Change the engine from “dot” to “circo” to help with displaying these graphs.
Let be the graph pictured below.
The code for drawing this graph in graphviz is:
digraph G {
a -> b
b -> c
b -> e
e -> f
f -> a
c -> d
c -> g
e -> g
e -> h
f -> h
}