Questions: Directed Graphs and Digraphs

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

In a directed graph modeling web hyperlinks, page A links to page B, and page B links to page C. Can page C reach page A by following links?

AYes — since A, B, and C are all connected, the graph is connected and any page can reach any other
BNot necessarily — directed edges are one-way, and reachability from C to A depends on whether a directed path back to A exists
CYes — in any connected graph, every vertex can reach every other vertex
DNo — once you reach a page with no outgoing links you cannot continue, so backward traversal is impossible
Question 2 Multiple Choice

A vertex in a digraph has in-degree 0 and positive out-degree. This vertex is called a source. Which best describes its role?

AIt receives information from all other vertices but produces none
BIt produces information or flow that others receive, but nothing points into it from other vertices
CIt is an isolated vertex with no connections in either direction
DIt has equal in-degree and out-degree, making it balanced
Question 3 True / False

A directed graph can be weakly connected without being strongly connected — treating all edges as undirected yields a connected graph, but directed paths between some pairs of vertices may not exist in both directions.

TTrue
FFalse
Question 4 True / False

In a directed graph, if vertex B is reachable from vertex A via a directed path, then vertex A is necessarily reachable from vertex B via a directed path.

TTrue
FFalse
Question 5 Short Answer

What is the difference between weak connectivity and strong connectivity in a directed graph, and why does the distinction matter in practice?

Think about your answer, then reveal below.