Write a boolean function, called universalSink, to determine weather a directed graph has a universal sink. A universal sink is a vertex which has no outgoing edges, and all other vertices have an incoming edge to the sink vertex.

icon
Related questions
Question
Write a boolean function, called universalSink, to determine weather a directed graph has a universal sink. A universal sink is a vertex which has no outgoing edges, and all other vertices have an incoming edge to the sink vertex.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Minimum Spanning Tree
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, data-structures-and-algorithms and related others by exploring similar questions and additional content below.