graph.py: minor speed up and memory reduction to Stephan's addition of the review status.