• Home
  • About Us
  • Privacy Policy
  • Contact Us
  • Disclaimer
  • Terms & Conditions
Journal Official
Advertisement
  • Home
  • Tech
    • All
    • Apps
    • Gadgets
    Google’s CFO just got promoted

    Google’s CFO just got promoted

    How Google’s latest AI model is generating music from your brain activity

    How Google’s latest AI model is generating music from your brain activity

    Easy Rider to Midnight Run, The Greatest Roadtrips Movies of All Time

    Easy Rider to Midnight Run, The Greatest Roadtrips Movies of All Time

    Three new Starfield animated shorts offer more glimpses of Bethesda’s new universe

    Three new Starfield animated shorts offer more glimpses of Bethesda’s new universe

    Some top AMD chips have a huge security flaw

    Some top AMD chips have a huge security flaw

    What is a Linux Bash Script and How Do You Build One?

    What is a Linux Bash Script and How Do You Build One?

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
  • Entertainment
  • Sports
  • CryptoCurrency
  • Business
  • Health and Lifestyle
    • All
    • Food
    World IVF Day: Infertility is a silent epidemic – why is it important to tackle fertility problems?  experts tell

    World IVF Day: Infertility is a silent epidemic – why is it important to tackle fertility problems? experts tell

    What is ‘duck walk’ in old age?  Expert shares tips on maintaining normal mobility

    What is ‘duck walk’ in old age? Expert shares tips on maintaining normal mobility

    Radiohead brands portfolio expands with the launch of Hustle™ energy drink.  Unveiled through new campaign “Dreams are free, #HustleModeOn for everything else – Food Marketing Technology”

    Radiohead brands portfolio expands with the launch of Hustle™ energy drink. Unveiled through new campaign “Dreams are free, #HustleModeOn for everything else – Food Marketing Technology”

    From Chris Gayle to Virat Kohli: Most runs scored by players in India vs West Indies ODI series

    From Chris Gayle to Virat Kohli: Most runs scored by players in India vs West Indies ODI series

    Infertility Treatment: How Ayurveda Can Help Increase Fertility?  experts tell

    Infertility Treatment: How Ayurveda Can Help Increase Fertility? experts tell

    Ishant Sharma opens up about the truth behind Zaheer Khan’s Test retirement and the allegations against Virat Kohli

    Ishant Sharma opens up about the truth behind Zaheer Khan’s Test retirement and the allegations against Virat Kohli

    Trending Tags

    • Golden Globes
    • Game of Thrones
    • MotoGP 2017
    • eSports
    • Fashion Week
No Result
View All Result
  • Home
  • Tech
    • All
    • Apps
    • Gadgets
    Google’s CFO just got promoted

    Google’s CFO just got promoted

    How Google’s latest AI model is generating music from your brain activity

    How Google’s latest AI model is generating music from your brain activity

    Easy Rider to Midnight Run, The Greatest Roadtrips Movies of All Time

    Easy Rider to Midnight Run, The Greatest Roadtrips Movies of All Time

    Three new Starfield animated shorts offer more glimpses of Bethesda’s new universe

    Three new Starfield animated shorts offer more glimpses of Bethesda’s new universe

    Some top AMD chips have a huge security flaw

    Some top AMD chips have a huge security flaw

    What is a Linux Bash Script and How Do You Build One?

    What is a Linux Bash Script and How Do You Build One?

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
  • Entertainment
  • Sports
  • CryptoCurrency
  • Business
  • Health and Lifestyle
    • All
    • Food
    World IVF Day: Infertility is a silent epidemic – why is it important to tackle fertility problems?  experts tell

    World IVF Day: Infertility is a silent epidemic – why is it important to tackle fertility problems? experts tell

    What is ‘duck walk’ in old age?  Expert shares tips on maintaining normal mobility

    What is ‘duck walk’ in old age? Expert shares tips on maintaining normal mobility

    Radiohead brands portfolio expands with the launch of Hustle™ energy drink.  Unveiled through new campaign “Dreams are free, #HustleModeOn for everything else – Food Marketing Technology”

    Radiohead brands portfolio expands with the launch of Hustle™ energy drink. Unveiled through new campaign “Dreams are free, #HustleModeOn for everything else – Food Marketing Technology”

    From Chris Gayle to Virat Kohli: Most runs scored by players in India vs West Indies ODI series

    From Chris Gayle to Virat Kohli: Most runs scored by players in India vs West Indies ODI series

    Infertility Treatment: How Ayurveda Can Help Increase Fertility?  experts tell

    Infertility Treatment: How Ayurveda Can Help Increase Fertility? experts tell

    Ishant Sharma opens up about the truth behind Zaheer Khan’s Test retirement and the allegations against Virat Kohli

    Ishant Sharma opens up about the truth behind Zaheer Khan’s Test retirement and the allegations against Virat Kohli

    Trending Tags

    • Golden Globes
    • Game of Thrones
    • MotoGP 2017
    • eSports
    • Fashion Week
No Result
View All Result
Journal Official
No Result
View All Result
Home Tech

Closeness and Community: Analyzing Social Networks with Python and NetworkX – Part 3 | By Christine Egan | June, 2023

admin by admin
June 26, 2023
in Tech
0
Closeness and Community: Analyzing Social Networks with Python and NetworkX – Part 3 |  By Christine Egan |  June, 2023
0
SHARES
1
VIEWS
Share on FacebookShare on Twitter


News bulletin

Sed ut perspiciatis eggs.

subscribe

Learn about communities and closeness centrality in social network analysis with Python and NetworkX

to data science

In Part 2, we expanded our understanding of social network analysis by charting the relationship between the Smashing Pumpkins and the Zwan band members. Then, we examined metrics such as degree centrality and betweenness centrality to examine the relationships between different band members. Also, we discussed how domain knowledge helps inform our understanding of the results.

In Part 3, we’ll cover the basics of proximity centrality and how it is calculated. Then, we’ll demonstrate how to calculate closeness centrality with NetworkX, using Billy Corgan’s network as an example.

Find the code to generate this graph on my GitHub. ⭐️ For easy reference.

before you start…

  1. Do you have basic knowledge of it? Python, if not, start here,
  2. are you familiar with Basic Concepts in Social Network Analysis, like nodes and edges? if not, start here,
  3. Are you comfortable with this? degree centrality And center centrality, if not, start here,

proximity centrality

proximity centrality is a measure in social network analysis that determines how close a node is to all other nodes in the context of the network. shortest path distance,

Proximity centrality focuses on the efficiency of information or resource flow within a network. The idea is that nodes with high closeness centrality are able to reach other nodes more quickly and efficiently, because they have a shorter average distance to the rest of the network.

The closeness centrality of a node is calculated as the inverse of the sum of the shortest path distances. (SPD) from that node to all other nodes in the network.

Closeness Centrality = 1 / (Sum of SPD from node to all other nodes)

Higher values ​​indicate greater centrality and efficiency in information flow within the network.

Calculating adjacency centrality

Let’s break it down using a simple network with eight nodes.

  1. Calculate the shortest path distance (SPD) from node A to all other nodes. For our example, we’ll use a simple example of distances. In practice, this would be done with shortest path algorithms such as Breadth-first search or Dijkstra’s algorithm.

2. Calculate the sum of the shortest path distances from node A to all other nodes.

3. Apply the proximity centrality formula.

closeness and community

We can think of communities as groups of nodes that are more strongly connected within themselves than connections to nodes outside the group. Communities capture the idea of ​​cohesive subgroups or modules within a network, where nodes in the same community have strong ties to each other. Communities are characterized by the presence of dense intra-community connections and relatively sparse intra-community connections.

Find the code to generate this graph on my GitHub. ⭐️ For easy reference!

When we consider the members of the bands Smashing Pumpkins and Zwaan, it is easy to imagine how the bands are connected to each other by their shared members. It displays both the intra-group connectivity between the members of each band and the intra-group connectivity between the two bands.

Whereas closeness centrality measures individual node importance and information flow efficiency, communities capture cohesive subgroups with dense connections. Together, they contribute to understanding the dynamics of information flow and the organization of networks.

Let us discuss some of the ways in which we can use proximity centrality and community to explain network dynamics.

  1. proximity centrality within communities

Nodes belonging to the same community often have high closeness centrality values ​​within the community. This indicates that nodes within a community are closely connected and can reach each other quickly in terms of shortest path distance. High closeness centrality within communities reflects efficient information flow and communication within subgroups.

Find the code to generate this graph on my GitHub. ⭐️ For easy reference!

2. Connecting communities with proximity centrality

Nodes that connect different communities or act as bridges between communities may have greater closeness centrality than nodes in separate communities. These nodes play a vital role in connecting different communities, facilitating communication and information flow between them.

Find the code to generate this graph on my GitHub. ⭐️ For easy reference!

3. Community-Level Analysis Using Proximity Centrality

Proximity centrality can also be used at the community level to analyze the importance of communities within a network. By aggregating the proximity centrality values ​​of nodes within a community, one can assess the overall efficiency of information flow within the community. Communities with higher average closeness centrality can be considered more central and influential in terms of their ability to access and disseminate information within the network.

Find the code to generate this graph on my GitHub. ⭐️ For easy reference!

Proximity centrality measures individual node importance and information flow efficiency, whereas communities capture cohesive subgroups with dense connections. Together, they contribute to understanding the dynamics of information flow and the organization of networks.

When considering Billy Corgan’s sphere of influence, proximity centrality can provide insight into how the members of Smashing Pumpkins and Zwaan directly and indirectly influence other musicians in Billy Corgan’s network. We can use the concept of community to describe each band, but we can also use it to describe the set of both bands. In fact, the community of 1990s alternative rock musicians is huge, and more communities will emerge as we add more bands to the network.

Billy Corgan circa 1991 – By Barb West, CC BY-SA 4.0
  1. As we did in Part 2, we are going to create a function that will generate all combinations of band members for each band.

2. Next, we define each band, and apply the function to generate a list of tuples. Then, we combine the lists and use a list comprehension to remove any doubles.

3. Now we can plot the graph.

It should look something like this:

4. Finally, let’s calculate the closeness centrality and analyze the values.

The output should look something like this:

So what can we say about values?

  • Billy Corgan and Jimmy Chamberlin have the highest proximity centrality of 1.00, indicating that they are the most central members in terms of quickly reaching other members.
  • James Iha, Katie Cole, Darcy Ritzky, Melissa Auf der Maur, Ginger Poole, Mike Byrne and Nicole Fiorentino have the same closeness centrality value of 0.785714. This suggests that these members are closely related and can reach each other quickly.
  • Paz Lenchantin, David Pajo and Matt Sweeney have a closeness centrality value of slightly less than 0.611111. This indicates that they may be less central in terms of access to other members than the previous group, but they are still relatively well connected within the network.

Since we are still working with relatively simple networks, these results reveal nothing other than what we learned when we calculated degree centrality and betweenness centrality for Billy Corgan’s network. In Part 4, we will increase the complexity by adding more bands and musicians to the network. As a bonus, we’ll introduce some advanced techniques in Matplotlib to make your NetworkX graphs even more visually appealing!

if you want Fully Annotated Python Tutorialvisit my github,

👩🏻‍💻Christine Egan | Medium | Github | LinkedIn

Previous Post

Lightning kills 4 in Rajasthan, hundreds stranded in Himachal as monsoon advances

Next Post

BTS: Revisiting ‘Buy $1 Worth of Bitcoin’ Video 10 Years Later

admin

admin

Next Post
BTS: Revisiting ‘Buy $1 Worth of Bitcoin’ Video 10 Years Later

BTS: Revisiting 'Buy $1 Worth of Bitcoin' Video 10 Years Later

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Journal Official

Welcome to our News Magazine Website, your go-to source for the latest and most compelling news around the Globe. Stay informed, stay inspired, and explore the world through our comprehensive and user-friendly platform.

Follow Us

Recent posts

  • Open Access vs. Subscription: Masa Depan Aksesibilitas Jurnal Akademik
  • Strategi Memilih Jurnal yang Tepat untuk Naskah Penelitian Anda
  • Peran Jurnal Terindeks Scopus: Mengapa Penting untuk Karier Akademik
  • Etika Penulisan Ilmiah: Menghindari Plagiarisme dan Pelanggaran Kode Etik
  • Memahami Proses Peer Review: Kunci Kualitas Publikasi Ilmiah

Recent News

Open Access vs. Subscription: Masa Depan Aksesibilitas Jurnal Akademik

December 7, 2025

Strategi Memilih Jurnal yang Tepat untuk Naskah Penelitian Anda

December 7, 2025
  • Home
  • About Us
  • Privacy Policy
  • Contact Us
  • Disclaimer
  • Terms & Conditions

© 2023 Journal Official - News Magazine

No Result
View All Result
  • Disclaimer

© 2023 Journal Official - News Magazine