Algorithms and Data Structures · Junior · Question 55 of 75
What is a graph?
- 1A chart that shows how data changes over time
- 2A tree in which every node has two children
- ✓Correct answer: Vertices connected by edges, possibly with cycles
Explanation
Graphs model networks: users and friendships, pages and links, cities and roads. A tree is a special case of a connected graph without cycles.