Question

Prove that if

Prove that if

0 0
Answer #1

Assuming G is a directed acyclic graph with n vertices and there are two vertices u and v. There is a directed path of length n-1 from u to v.  

Directed acyclic graph means there must not be cycle which means maximum length of any path from one vertex to another can be n-1 only. In our case length of directed path between u to v is n-1. Considering u has in-neighbor means incoming edge to it then there must be one vertex at-least from which edge is entering into u. If that vertex is v which means u-v-u will become a cycle and graph can't be DAG. If that vertex is other than v then also u-x-u will become cycle where x is the vertex which is part of u-v path.

in all cases graph will be having cycle which can't be true as Graph is DAG. Hence Proved.

Know the answer?
Add Answer to:
Prove that if
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT