Added horizontal graphs.

Graphs can now be vertical (old style) or horizontal. All functions have been
appropriately renamed.