working graph generation