Question: In a directed graph, define a vertex as source if it has indegree zero. Also, define a vertex as sink if it has out-degree zero.
In a directed graph, define a vertex as source if it has indegree zero. Also, define a vertex as sink if it has out-degree zero. Given a directed acyclic graph G = (V,E). If discovery time and finishing time are obtained by applying standard DFS, which is the property of vertex that is guaranteed to be a source?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
