Getting Started With The Gephi Network Visualisation App – My Facebook Network, Part I
A couple of weeks ago, I came across Gephi, a desktop application for visualising networks.
And quite by chance, a day or two after I was asked about any tools I knew of that could visualise and help analyse social network activity around an OU course… which I take as a reasonable justification for exploring exactly what Gephi can do :-)
So, after a few false starts, here’s what I’ve learned so far…
First up, we need to get some graph data – netvizz – facebook to gephi suggests that the netvizz facebook app can be used to grab a copy of your Facebook network in a format that Gephi understands, so I installed the app, downloaded my network file, and then uninstalled the app… (can’t be too careful ;-)
Once Gephi is launched (and updated, if it’s a new download – you’ll see an updates prompt in the status bar along the bottom of the Gephi window, right hand side) Open… the network file you downloaded.
NB I think the graph should probably be loaded as an undirected graph… That is, if A connects to B, B connects to A. But I’m committed to the directed version in this case, so we’ll stick with it… (The directed version would make sense for a Twitter network (which has an asymmetric friending model), where A may follow B, but B might choose not to follow A. In Facebook, friending is symmetric – A can only friend B if B friends A.
(Btw, I’ve come across a few gotchas using Gephi so far, including losing the window layout shown above. Playing with the Reset Windows from the Windows menu sometimes helps… There may be an easier way, but I haven’t found it yet…)
The graph window gives a preview of the network – in this case, the nodes are people and the edges show that one person is following another. (Remember, I should have loaded this as an undirected graph. The directed edges are just an artefact of the way the edge list that states who is connected to whom was generated by netvizz.)
Using the scroll wheel on a mouse (or two finger push on my Mac mousepad), you can zoom in and out of the network in the graph view. You can also move nodes around, view the labels, switch the edges on and off off, and recenter the view.
Not shown – but possible – is deleting nodes from the graph, as well as editing their properties.
You can also generate views of the graph that show information about the network. In the Ranking panel, if you select the Nodes tab, set the option to Degree (the number of edges/connections attached to a node) and then choose the node size button (the jewel), you can set the size of the node to be proportional to the number of connections. Tune the min and max sizes as required, then hit apply:
You can also colour the nodes according to properties:
So for example, we might get something like this:
Label size and colour can also be proportional to node attributes:
To view the labels, make sure you click on the Text labels option at the bottom of the graph panel. You may also need to tweak the label size slider that’s also on the bottom of the panel.
If you want to generate a pretty version of the graph, you need to do a couple of things. Firstly, in the layout panel, select a layout algorithm. Force Atlas is the one that the original tutorial recommends. The repulsion strength determines how dispersed the final graph will be (i.e. it sets the “repulsive force” between nodes); I set a value of 2000, but feel free to play:
When you hit Run, the button label will change to Stop and the graph should start to move and reorganise itself. Hit Stop when the graph looks a little better laid out. Remember, you can also move nodes around in the graph as show in the video above.
Having run the Layout routine, we can now generate a pretty view of the graph. In the Preview Settings panel on the left-hand side of the Gephi environment, select “Show Labels” and then hit “Refresh”:
In the Preview panel, (next tab along from Preview Settings), you should see a the prettified, 3D layout view:
Note that in this case I haven’t made much attempt at generating a nice layout, for example by moving nodes around in the graph window to better position them, but you can do… (just remember to Refresh the Preview view in the Preview Settings… (There must be a shortcut way of doing that, but I haven’t found it…!:-(
If you want to look at who any particular individual is connected to, you can go to the
Data Table panel (again in the set of panels on the right hand side, just along from the Preview tab panel) and search for people by name. Here, I’m searching the edges to see who of my Facebook friends a certain Martin W is also connected to on Facebook;
It’s easy enough to highlight/select and copy these cells and then post them into a spreadsheet if required.
So that’s step 1 of getting started with Gephi… a way of using it to explore a graph in very general terms; but that’s not where the real fun lies. That starts when you start processing the graph by running statistics and filters over it. But for that, you’ll have to wait for the next post in this series… which is here: Getting Started With Gephi Network Visualisation App – My Facebook Network, Part II: Basic Filters











Great explanation job!
Sebastien Heymann
April 16, 2010 at 1:22 pm
wow – lots to explore here Tony. many thanks. re- the query you received about tools to “visualise and help analyse social network activity around an OU course”, assuming that the activity is based in Moodle forums, you might like to look at the bookmarklet from the SNAPP project: http://research.uow.edu.au/learningnetworks/seeing/snapp/index.html
Alan Arnold
April 16, 2010 at 11:35 pm
[...] is a reasonably simple and interesting tool for visualisations. Here is a blog post by Tony Hirst about how to use it, and below is a video introducing it. You might also check out the (385 and [...]
Gelphi—nice tool for network visualisations | ARTS2090
April 17, 2010 at 7:44 am
[...] tools, visualisation Gelphi is a reasonably simple and interesting tool for visualisations. Here is a blog post by Tony Hirst about how to use it, and below is a video introducing it. You might also check out the (385 and [...]
Gelphi—nice tool for network visualisations | Media Forms
April 21, 2010 at 6:12 am
[...] brings to mind the Facebook network visulisation I started working on with Gephi… Could we use visualisation tools to highlight who in your [...]
Keeping Up with Facebook Privacy Changes (Again) « OUseful.Info, the blog…
April 23, 2010 at 8:47 am
Thanks for this, I’ve had Gephi on my desktop for a while but never got round to using it. This tutorial has really helped.
Cheers,
Peter Myatt
April 23, 2010 at 9:31 am
[...] Published April 23, 2010 Visualisation Leave a Comment Tags: gephi In Getting Started With Gephi Network Visualisation App – My Facebook Network, Part I I described how to get up and running with the Gephi network visualisation tool using social graph [...]
Getting Started With Gephi Network Visualisation App – My Facebook Network, Part II: Basic Filters « OUseful.Info, the blog…
April 23, 2010 at 12:06 pm
[...] social network. I used the excellent gephi network visualization and analysis tool, along with these instructions to generate a network graph of my facebook friends. Graphed and clustered visualization of my Facebook friends. Just as Google predicts, I've got [...]
Online vs. Offline Social Networks « Fitzgerald Steele
July 6, 2010 at 5:06 pm
Thanks Tony!
I´ve tried to figure out how to collect data for a while. This tutorial has really helped to get further on, with the goal – to be able to analyze Diigo groups, activity in wikis…
Niklas Karlsson
January 28, 2011 at 2:46 pm
@Niklas – depending on which social network you’re looking at – and what you want to explore – there may be calls to an API that you can make to get hold of the data. For example, I’ve looked in particular at twitter (e.g. http://blog.ouseful.info/2011/01/04/sketching-the-structure-of-the-uk-political-media-twittersphere/ ) and more recently, delicious (e.g. http://blog.ouseful.info/2011/01/27/tags-associated-with-other-tags-on-delicious-bookmarked-resources/ )
In terms of students and staff behaving differently, it may be that segmentation of users before you analyse them can help. I think I started to touch on this in my series of posts on Library Analytics: http://www.google.co.uk/search?q=ouseful+inurl:library-analytics
Tony Hirst
January 28, 2011 at 4:05 pm
[...] tutorial explaingin how to get started with [...]
Project One: Visualizing Friendship « dataist
February 2, 2011 at 4:38 pm
[...] those interested in details, see here and for some more advanced statistics here. The latter link requires some working knowledge in [...]
Analyze your Facebook Network using Gephi » JohanDahlin.com
June 2, 2011 at 1:45 pm
[...] The tool we’re going to use to layout this graph from a data file is a free, extensible, open source, cross platform Java based tool called Gephi. If you want to play along, download the datafile. (Or try with a network of your own, such as your Facebook network.) [...]
Visualising Twitter Friend Connections Using Gephi: An Example Using @WiredUK Friends Network « OUseful.Info, the blog…
July 7, 2011 at 9:31 am
[...] PS if you want to run a more hands on analysis of your Facebook network, try this: Getting Started With The Gephi Network Visualisation App – My Facebook Network, Part I [...]
Circles vs Community Detection « OUseful.Info, the blog…
July 28, 2011 at 10:39 am
[...] Getting Started With The Gephi Network Visualisation App – My Facebook Network, Part I by Tony Hirst. [...]
Getting Started With The Gephi… « Another Word For It
January 22, 2012 at 3:10 am
[...] also: Getting Started With The Gephi Network Visualisation App – My Facebook Network, Part I and how to visualise Google+ [...]
Social Interest Positioning – Visualising Facebook Friends’ Likes With Data Grabbed Using Google Refine « OUseful.Info, the blog…
February 2, 2012 at 9:48 am
[...] baby steps into the world of visualization via Gephi. I followed the steps in Dr. Tony’s post “Getting Started With The Gephi Network Visualisation App – My Facebook Network, Part I&#… and “Getting Started With Gephi Network Visualisation App – My Facebook Network, Part II: [...]
A return to week 28: Tony Hirst and Gephi #change11 « LEARNING RETENTION
April 10, 2012 at 6:35 pm
[...] Post • Feb 16, 2011 Tom Szekeres, Data Analyst, PokeI'd follow this tutorial http://blog.ouseful.info/2010/04… which … (more) Sign up for free to read the full text. Login if you already have an [...]
What is the best way to visualize my social graph? - Quora
May 10, 2012 at 10:27 am
[...] account). (If you want to visualise your own Facebook network, here’s a recipe for doing so: Getting Started With The Gephi Network Visualisation App – My Facebook Network.) Google+ also makes an indivudal’s connection data public in a roundabout way, although not [...]
Twitter Starting to Make a Grab for the Interest Graph? « OUseful.Info, the blog…
September 1, 2012 at 10:12 am
[...] Following publication of this post Tony Hirst informed me of his posts on Getting Started With The Gephi Network Visualisation App – My Facebook Network, Part I and Social Interest Positioning – Visualising Facebook Friends’ Likes With Data Grabbed Using [...]
Thoughts on Wolfram|Alpha Personal Analytics for Facebook « UK Web Focus
September 5, 2012 at 9:19 am
Whats the name of this enviroment, to build this graphs?
pozycjonowanie bielsko
September 10, 2012 at 9:47 am
[...] I got the tech and the idea from Paul’s Online Journalism Blog, where he also linked to this excellent walkthrough. My lack of familiarity with the tech may be why my infographic so closely resembles the one on [...]
My first infographic | datacrumble
October 17, 2012 at 11:42 am
[...] Getting Started With The Gephi Network Visualisation App – My Facebook Network, Part I [...]
#CAST12 DataViz Sandbox – Resources « OUseful.Info, the blog…
December 12, 2012 at 10:47 am
[...] ich mir meine Daten heruntergeladen habe, habe ich mich an ein Tutorial gehalten: Getting Started With The Gephi Network Visualisation App – My Facebook Network, Part I. Insgesamt gibt es vier Teile (Teil 2, Teil 3, Teil 4), wobei der dritte Teil eigentlich obsolet [...]
Gephi: Netzwerk bei Facebook visualisieren « Schafott Schafott
January 1, 2013 at 4:08 pm
[...] http://blog.ouseful.info/2010/04/16/getting-started-with-gephi-network-visualisation-app-my-facebook… [...]
Cartographier vos informations avec Gephi | Stratidev
March 20, 2013 at 4:02 pm
[…] Getting Started With The Gephi Network Visualisation App – My Facebook Network, Part I | OUse… […]
List of Bookmarks collected from Jan-May
May 17, 2013 at 2:45 pm