This repository contains accompanying material for Chapter 5 - Social network analysis from F# Deep Dives book.
F#
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
AnalyzeNetwork.fsx
ExtractNetwork.fsx
LICENSE
README.md
SocialNetworkAnalysis.fsproj
SocialNetworkAnalysis.sln
packages.config

README.md

F# Deep Dives: Social network analysis

Evelina Gabasova, 2014

This repository contains accompanying material for Chapter 5 of F# Deep Dives.

To run the code in Visual Studio, make sure you first build the project `SocialNetworkAnalysis.sln`` to restore all necessary packages. The code uses FSharp.Data (2.0.7 or later) and FSharp.Data.Toolbox to connect to Twitter.

Content

  • ExtractNetwork.fsx downloads network around F# Software Foundation from Twitter and saves it into JSON files.

  • AnalyzeNetwork.fsx loads saved JSON data into F# and performs exploratory analysis to identify important nodes in the social network.

  • data\fsharporgLinks.json, data\fsharporgNodes.json are files with data downloaded from Twitter.

  • data\pageRankNodes.json adds PageRank value of each user to fsharporgNodes.json

  • data\d3_twitter.html visualizes Twitter network around F# Software Foundation on Twitter using D3.js

  • data\d3_twitterPageRank.html visualizes Twitter network aroun F# Software Foundation and scales nodes (users) proportionally to their PageRank centrality.