speeding up graph generation - review fixes