Error handling - graph reading