Question:

What are the in-degree and out-degree of vertex 4?

Show Hint

To find the in-degree and out-degree of a vertex in a directed graph, count the incoming and outgoing edges, respectively.
Updated On: May 3, 2025
  • 1 and 3
  • 2 and 2
  • 3 and 2
  • 1 and 4
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

In graph theory: - The in-degree of a vertex is the number of incoming edges to that vertex.
- The out-degree of a vertex is the number of outgoing edges from that vertex.
Looking at the graph:
- Vertex 4 has 3 incoming edges (from vertices 1, 2, and 3).
- Vertex 4 has 2 outgoing edges (to vertices 1 and 3).
Thus, the in-degree of vertex 4 is 3, and the out-degree of vertex 4 is 2.
The correct answer is \( 3 \text{ and 2} \).

Was this answer helpful?
0
0