Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
22.4.2.1. Types of Edges in Directed Graphs
This section
Practice test
11 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
5 cards from this lesson. Good the night before a test.
Try these first
- 1.
What is a directed graph?
Hint
Think about how edges connect the vertices.
- 2.
Define a backward edge.
Hint
It 'backs' up the tree.
- 3.
What type of edge connects a vertex to one of its descendants in a DFS tree?
- Tree Edge
- Forward Edge
- Backward Edge
Hint
This edge helps in traversing downward.
- 4.
If a traversal reveals a backward edge, what does this indicate?
- True
- False
Hint
Think about the relationship to ancestors.
- 5.
Create your own directed graph with at least 6 vertices, and label all edge types found in a DFS traversal. Identify any cycles.
Hint
Draw the graph and trace your DFS path!
- 6.
Given a directed graph, how can you determine the number of strongly connected components? Write a pseudocode for this process.
Hint
Think about how you can utilize DFS both ways to uncover hidden connections.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
1 more question available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting