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?
yes. new connection established and to show connections those social networks use breadth first search(BFS)