add option -graph-only to stop after graph building

This is useful when using -write-kmers.

Reported-by: Emily Tung, Pivot Bio
Link: https://twitter.com/emilytung/status/422890332728995841
Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>