debugging graphs