Graphs in Social Networks
📖 Scenario: Imagine you are analyzing a small social network where people are connected as friends. Each person is a node, and each friendship is an edge connecting two nodes.
🎯 Goal: You will build a simple representation of a social network using a graph structure. You will create the data, set a threshold for popular users, find users with many friends, and finally mark those popular users.
📋 What You'll Learn
Create a dictionary representing the social network graph with exact people and their friends
Add a variable for the minimum number of friends to be considered popular
Use a loop to find all popular users based on the threshold
Add a final dictionary marking popular users with a boolean value
💡 Why This Matters
🌍 Real World
Social networks use graphs to represent connections between people, helping to analyze relationships and suggest new friends.
💼 Career
Understanding graph structures is important for roles in data analysis, social media management, and software development involving network data.
Progress0 / 4 steps