Add warning handling to graph
Handle warnings in io package