Editing
Graph Metrics
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Applying</span> == '''Modeling 'The Social Influencer' (Calculating who is the 'Center' of a group):''' <syntaxhighlight lang="python"> def calculate_influence(adjacency_list): """ Shows how 'Degree' determines immediate reach. """ scores = {} for person, friends in adjacency_list.items(): # Degree Centrality = Count of friends scores[person] = len(friends) # Sort to find the top influencer ranked = sorted(scores.items(), key=lambda x: x[1], reverse=True) return ranked # Network: Alice knows (Bob, Charlie), Bob knows (Alice, Dan), Charlie knows (Alice). network = { "Alice": ["Bob", "Charlie"], "Bob": ["Alice", "Dan"], "Charlie": ["Alice"], "Dan": ["Bob"] } print(f"Influence Ranking: {calculate_influence(network)}") </syntaxhighlight> ; Metric Landmarks : '''The 'Königsberg Bridges' (Euler, 1736)''' → The "Birth of Graph Theory." Leonhard Euler proved that it was "Impossible" to walk through the city and cross every bridge once, starting the science of "Nodes and Edges." : '''Google PageRank''' → The most profitable graph metric in history. It uses "Eigenvector Centrality" to decide which websites are "Important" based on who "Links" to them. : '''The 'Strength of Weak Ties' (Granovetter)''' → The discovery that your "Acquaintances" (Weak Ties) are more likely to find you a "Job" than your "Close Friends" because they connect you to "New parts of the network." : '''Epidemic Modeling''' → Using graph metrics to find the "Super-spreaders" of a virus (Nodes with high degree and high betweenness) to "Vaccinate" them first and "Break" the network. </div> <div style="background-color: #8B4500; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information