Algorithms and Data Structures · Junior · Question 56 of 75

What is the difference between a directed and an undirected graph?

Explanation

Twitter follows are directed: you can follow someone who doesn't follow you. Facebook friendships are undirected. A directed graph can have cycles; one without them is called a DAG.

Further reading

Problem with a question

Algorithms and Data Structures · Junior · question 56

Test yourself

Take the Algorithms and Data Structures · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz