Monday, June 27, 2022

[FIXED] What is represent by edges when facebook using graph data structure

Issue

when learning graph data structure I learned that facebook also use it.And I know nodes represent persons. is edge represent connections between them? when we become a friend with them is there a edge between me and that new friend?


Solution

yes. new connection established and to show connections those social networks use breadth first search(BFS)



Answered By - Dinithi
Answer Checked By - Robin (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.