Skip to main content
QUICK REVIEW

[Paper Review] Analyzing the Facebook Friendship Graph

Salvatore Catanese, Pasquale De Meo|arXiv (Cornell University)|Nov 23, 2010
Complex Network Analysis TechniquesPhysics and Astronomy24 references34 citations
TL;DR

This study analyzes a large-scale sample of Facebook's friendship graph using social network analysis (SNA) techniques, extracting and cleaning data from ~547,000 users and 836,000 edges via a custom web scraping agent. Key findings reveal a giant connected component, a short average path length (5.00), and high centrality in a few nodes, suggesting structural similarities to real-world social networks.

ABSTRACT

Online Social Networks (OSN) during last years acquired a huge and increasing popularity as one of the most important emerging Web phenomena, deeply modifying the behavior of users and contributing to build a solid substrate of connections and relationships among people using the Web. In this preliminary work paper, our purpose is to analyze Facebook, considering a significant sample of data reflecting relationships among subscribed users. Our goal is to extract, from this platform, relevant information about the distribution of these relations and exploit tools and algorithms provided by the Social Network Analysis (SNA) to discover and, possibly, understand underlying similarities between the developing of OSN and real-life social networks.

Motivation & Objective

  • To investigate the structural properties of Facebook's social network using real user data.
  • To assess whether online social networks (OSNs) like Facebook exhibit topological patterns similar to real-life social networks.
  • To develop and apply a scalable data extraction pipeline for OSN data while respecting privacy policies.
  • To visualize and analyze large-scale friendship graphs using SNA metrics and filtering techniques.
  • To explore the feasibility of using SNA tools for understanding OSN dynamics and user roles.

Proposed method

  • Developed a custom Java-based web agent using Firefox/XPCOM and XULRunner to crawl publicly accessible Facebook friend-list pages.
  • Implemented recursive data collection up to the third level of friendship relations from a seed user, filtering out fan pages and companies.
  • Collected data in GraphML format with user IDs as nodes and undirected edges for friendships.
  • Applied an O(n log n) data-cleaning algorithm using Java HashSet to remove duplicate nodes and edges, ensuring a clean undirected graph.
  • Calculated standard SNA metrics (degree, betweenness, closeness, PageRank, clustering coefficient, eigenvector centrality) using NodeXL.
  • Visualized subgraphs using force-directed layout algorithms (e.g., Fruchterman-Reingold) and applied filtering by centrality and clustering.

Experimental results

Research questions

  • RQ1What are the topological characteristics of Facebook’s friendship graph, such as diameter, density, and average path length?
  • RQ2How do key network metrics like degree, betweenness, and PageRank distribute across users in the Facebook network?
  • RQ3To what extent do the structural properties of Facebook resemble those of real-life social networks?
  • RQ4Can efficient data extraction and cleaning techniques be applied to large-scale OSN data while respecting privacy constraints?
  • RQ5How effective are SNA visualization and filtering techniques in revealing meaningful patterns in massive social graphs?

Key findings

  • The Facebook friendship graph contains 547,302 unique users (vertices) and 836,468 unique undirected edges, forming a large connected component with 546,733 nodes.
  • The average geodesic distance (shortest path length) between users is 5.00, indicating a small-world structure with high connectivity.
  • The graph’s diameter is 10, meaning no two users are more than 10 steps apart in the network.
  • The maximum degree of any node is 4,958, indicating a few highly connected users, while the average degree is 3.057.
  • A small number of nodes exhibit extremely high betweenness centrality—over 10 million—indicating critical roles in connecting otherwise distant parts of the network.
  • The clustering coefficient averages 0.053, suggesting moderate local clustering, though many nodes have zero clustering, indicating sparse local structures.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.