Consider this data listing relationships between members on a social network:
Jessica's friend list: Meghan, Alan, Martin
Meghan's friend list: Alan, Lori
Tony’s friend list: Lori, Meghan
Martin's friend list: Lori, Meghan
Alan's friend list: Martin, Jessica
Lori's friend list: Meghan
Consider how we can use graph techniques to express the various relationships between these members.
14. Construct a directed adjacency matrix to represent this data.
15. Compute the in/out degree of each vertex.
see more
data listing relationships
Comments
Leave a comment