Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Any Directed Acyclic Graph must havea)Atleast... Start Learning for Free
Any Directed Acyclic Graph must have
  • a)
    Atleast one vertex with indegree 1 and atleast one vertex with outdegree 0.
  • b)
    Atieast one vertex with indegree 0 or atleast one vertex with outdegree 0,
  • c)
    Atleast one vertex with indegree 0 and atleast one vertex with outdegree 0,
  • d)
    Atieast one vertex with indegree 0 and atleast one vertex with outdeg ree 1
Correct answer is option 'C'. Can you explain this answer?
Verified Answer
Any Directed Acyclic Graph must havea)Atleast one vertex with indegree...
Simplest DAG:
View all questions of this test
Most Upvoted Answer
Any Directed Acyclic Graph must havea)Atleast one vertex with indegree...
Explanation:

A directed acyclic graph (DAG) is a directed graph that does not contain any cycles. In other words, it is a graph where it is not possible to start at any vertex and follow the directed edges to come back to the same vertex.

In a DAG, there can be vertices with different indegrees and outdegrees. The indegree of a vertex is the number of incoming edges to that vertex, while the outdegree is the number of outgoing edges from that vertex.

Now let's analyze the given options:

a) At least one vertex with indegree 1 and at least one vertex with outdegree 0:
This option is not always true for a DAG. It is possible to have a DAG where all vertices have either an indegree of 0 or an outdegree of 0. For example, consider a line graph where each vertex has only one incoming and one outgoing edge.

b) At least one vertex with indegree 0 or at least one vertex with outdegree 0:
This option is also not always true for a DAG. It is possible to have a DAG where all vertices have both an indegree and an outdegree greater than 0. For example, consider a complete graph where each vertex is connected to every other vertex.

c) At least one vertex with indegree 0 and at least one vertex with outdegree 0:
This option is true for a DAG. Since a DAG does not contain any cycles, there must be at least one vertex with no incoming edges (indegree 0) because there is no way to reach that vertex from any other vertex. Similarly, there must be at least one vertex with no outgoing edges (outdegree 0) because there is no way to leave that vertex and continue to any other vertex.

d) At least one vertex with indegree 0 and at least one vertex with outdegree 1:
This option is not always true for a DAG. It is possible to have a DAG where all vertices have both an indegree greater than 0 and an outdegree greater than 1. For example, consider a directed cycle where each vertex has one incoming and two outgoing edges.

Therefore, the correct answer is option 'c'. A directed acyclic graph must have at least one vertex with an indegree of 0 and at least one vertex with an outdegree of 0.
Explore Courses for Computer Science Engineering (CSE) exam
Question Description
Any Directed Acyclic Graph must havea)Atleast one vertex with indegree 1 and atleast one vertex with outdegree 0.b)Atieast one vertex with indegree 0 or atleast one vertex with outdegree 0,c)Atleast one vertex with indegree 0 and atleast one vertex with outdegree 0,d)Atieast one vertex with indegree 0 and atleast one vertex with outdeg ree 1Correct answer is option 'C'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Any Directed Acyclic Graph must havea)Atleast one vertex with indegree 1 and atleast one vertex with outdegree 0.b)Atieast one vertex with indegree 0 or atleast one vertex with outdegree 0,c)Atleast one vertex with indegree 0 and atleast one vertex with outdegree 0,d)Atieast one vertex with indegree 0 and atleast one vertex with outdeg ree 1Correct answer is option 'C'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Any Directed Acyclic Graph must havea)Atleast one vertex with indegree 1 and atleast one vertex with outdegree 0.b)Atieast one vertex with indegree 0 or atleast one vertex with outdegree 0,c)Atleast one vertex with indegree 0 and atleast one vertex with outdegree 0,d)Atieast one vertex with indegree 0 and atleast one vertex with outdeg ree 1Correct answer is option 'C'. Can you explain this answer?.
Solutions for Any Directed Acyclic Graph must havea)Atleast one vertex with indegree 1 and atleast one vertex with outdegree 0.b)Atieast one vertex with indegree 0 or atleast one vertex with outdegree 0,c)Atleast one vertex with indegree 0 and atleast one vertex with outdegree 0,d)Atieast one vertex with indegree 0 and atleast one vertex with outdeg ree 1Correct answer is option 'C'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Any Directed Acyclic Graph must havea)Atleast one vertex with indegree 1 and atleast one vertex with outdegree 0.b)Atieast one vertex with indegree 0 or atleast one vertex with outdegree 0,c)Atleast one vertex with indegree 0 and atleast one vertex with outdegree 0,d)Atieast one vertex with indegree 0 and atleast one vertex with outdeg ree 1Correct answer is option 'C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Any Directed Acyclic Graph must havea)Atleast one vertex with indegree 1 and atleast one vertex with outdegree 0.b)Atieast one vertex with indegree 0 or atleast one vertex with outdegree 0,c)Atleast one vertex with indegree 0 and atleast one vertex with outdegree 0,d)Atieast one vertex with indegree 0 and atleast one vertex with outdeg ree 1Correct answer is option 'C'. Can you explain this answer?, a detailed solution for Any Directed Acyclic Graph must havea)Atleast one vertex with indegree 1 and atleast one vertex with outdegree 0.b)Atieast one vertex with indegree 0 or atleast one vertex with outdegree 0,c)Atleast one vertex with indegree 0 and atleast one vertex with outdegree 0,d)Atieast one vertex with indegree 0 and atleast one vertex with outdeg ree 1Correct answer is option 'C'. Can you explain this answer? has been provided alongside types of Any Directed Acyclic Graph must havea)Atleast one vertex with indegree 1 and atleast one vertex with outdegree 0.b)Atieast one vertex with indegree 0 or atleast one vertex with outdegree 0,c)Atleast one vertex with indegree 0 and atleast one vertex with outdegree 0,d)Atieast one vertex with indegree 0 and atleast one vertex with outdeg ree 1Correct answer is option 'C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Any Directed Acyclic Graph must havea)Atleast one vertex with indegree 1 and atleast one vertex with outdegree 0.b)Atieast one vertex with indegree 0 or atleast one vertex with outdegree 0,c)Atleast one vertex with indegree 0 and atleast one vertex with outdegree 0,d)Atieast one vertex with indegree 0 and atleast one vertex with outdeg ree 1Correct answer is option 'C'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam
Signup to solve all Doubts
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev