Skip to content

This repository analyzes the social network of "Game of Thrones" characters using network analysis techniques. It includes data files, scripts, and visualizations to explore character relationships and interactions within the series.

Notifications You must be signed in to change notification settings

fedeStaffo/GOT_Social_Network_Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of Thrones Social Network Analysis

📌 The dataset used in this analysis was sourced from here.

Project Overview

This project analyzes the social network of characters from the Game of Thrones series. The analysis includes various centrality measures, clique detection, k-core analysis, ego networks, and group centralities. The project is structured as follows:

Files and Directories

  • centrality.py: Calculates and visualizes various centrality measures (degree, closeness, betweenness, eigenvector) for the graph.
  • graph.py: Prints general graph metrics, plots the graph using different layouts, and plots the edge weight distribution.
  • structures/
    • cliques.py: Finds and prints the top 10 weighted cliques with individual contributions and plots the subgraph of each maximal clique.
    • ego_net.py: Generates and displays the ego network of specific nodes.
    • group_centralities.py: Calculates and displays group centrality metrics (degree, closeness, betweenness) for predefined groups.
    • k_core.py: Finds and prints the k-core details with automatic selection of k and plots the k-core subgraph.
    • triades.py: Finds and prints the top 10 weighted triads with individual contributions.
  • utils.py: Contains load_graph_from_dataset to load the graph from the dataset.
  • dataset/
    • got-nodes.csv: Contains the nodes (characters) of the graph with their labels.
    • got-edges.csv: Contains the edges (relationships) of the graph with their weights.

About

This repository analyzes the social network of "Game of Thrones" characters using network analysis techniques. It includes data files, scripts, and visualizations to explore character relationships and interactions within the series.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages