Updated benchmark for exiting on invalid graph type.