Practice free →
HomeAP Computer Science AComputer ScienceData Structures and Algorithms › A social network is modelled with people as vert…

A social network is modelled with people as vertices and friendships joining them. Each friendship is an:

AInverted array
BInternal loop
CIndex entry
DUndirected edge
Answer & Solution
Correct answer: D. Undirected edge
1. Friendship runs both ways. 2. It joins two vertices. 3. It is an undirected edge. _Source: OpenStax Introduction to Computer Science, Chapter 3, Data Structures and Algorithms._
Solve this in the app — AP Computer Science A practice & 24k+ MCQs →
Related questions