Removed backup and fixed NullPointerException in empty graph