Broken graph generator; need to debug