refactored graph parser specs