Added refactored GraphParser class with usage.