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

28 comments

  1. Pingback: Gelphi—nice tool for network visualisations | ARTS2090
  2. Pingback: Gelphi—nice tool for network visualisations | Media Forms
  3. Pingback: Keeping Up with Facebook Privacy Changes (Again) « OUseful.Info, the blog…
  4. Peter Myatt

    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,

  5. Pingback: Getting Started With Gephi Network Visualisation App – My Facebook Network, Part II: Basic Filters « OUseful.Info, the blog…
  6. Pingback: Online vs. Offline Social Networks « Fitzgerald Steele
  7. Niklas Karlsson

    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…

  8. Pingback: Project One: Visualizing Friendship « dataist
  9. Pingback: Analyze your Facebook Network using Gephi » JohanDahlin.com
  10. Pingback: Visualising Twitter Friend Connections Using Gephi: An Example Using @WiredUK Friends Network « OUseful.Info, the blog…
  11. Pingback: Circles vs Community Detection « OUseful.Info, the blog…
  12. Pingback: Getting Started With The Gephi… « Another Word For It
  13. Pingback: Social Interest Positioning – Visualising Facebook Friends’ Likes With Data Grabbed Using Google Refine « OUseful.Info, the blog…
  14. Pingback: A return to week 28: Tony Hirst and Gephi #change11 « LEARNING RETENTION
  15. Pingback: What is the best way to visualize my social graph? - Quora
  16. Pingback: Twitter Starting to Make a Grab for the Interest Graph? « OUseful.Info, the blog…
  17. Pingback: Thoughts on Wolfram|Alpha Personal Analytics for Facebook « UK Web Focus
  18. Pingback: My first infographic | datacrumble
  19. Pingback: #CAST12 DataViz Sandbox – Resources « OUseful.Info, the blog…
  20. Pingback: Gephi: Netzwerk bei Facebook visualisieren « Schafott Schafott
  21. Pingback: Cartographier vos informations avec Gephi | Stratidev
  22. Pingback: List of Bookmarks collected from Jan-May
  23. Pingback: Wrangling Data With “Free” Tools – LASI13 Workshop Round-Up | OUseful.Info, the blog...
  24. Pingback: Gephi – curated list of tutorials | Insights @exploreyourdata

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s