Improved parser.

- tried ruby graph library