706 graphical

Addresses #706 by adding the linear-time graphicality tests.