graph questions in data structures