Code

Improved error reporting in graph(): correctly report bad requests.