Fix typo 'compact' --> 'graph' for output