graph.py: compute edge risk only when not minifying arbors.
Make the middleware report the full stack trace of any exception.