Initial Sort of Library

digraph D {

node [fontname="Helvetica", fontsize="11"] edge [fontname="Helvetica"]

start        [label="START HERE", shape="box", style="bold"]

is_magazine  [label="Is it a\nMAGAZINE?"] is_oreilly   [label="Is it\npublished by O'REILLY?"] is_language  [label="Is it about one of\nthese LANGUAGES?\nHTML\nJava\nC++\nSQL\nOracle\nPHP\nPerl\nRuby"] is_linux     [label="Does it say\nLINUX\nin the title?"] is_computer [label="Do you think it's\nabout computers?"]

sort_magazine [label="Sort magazines by title\nthen by date", shape="box", style="bold"] sort_oreilly [label="Sort O'Reilly Books by color\nthen by title", shape="box", style="bold"] sort_language [label="Sort by language\nthen by title", shape="box", style="bold"] sort_not_computer [label="Sort by title", shape="box", style="bold"] sort_linux [label="Sort by title", shape="box", style="bold"] sort_miscellaneous [label="Sort by title", shape="box", style="bold"]

start -> is_magazine

is_magazine -> sort_magazine [label="YES"] is_magazine -> is_oreilly [label="NO"] is_oreilly -> sort_oreilly [label="YES"] is_oreilly -> is_language [label="NO"] is_language -> sort_language [label="YES"] is_language -> is_linux [label="NO"] is_linux -> sort_linux [label="YES"] is_linux -> is_computer [label="NO"] is_computer -> sort_not_computer [label="NO"] is_computer -> sort_miscellaneous [label="YES"] }