Added option for graph output format (fixes #32).