Implemented random hard graph generation.