Analyzing facebook networks with Gephi (netvizz app)

Preview:

Citation preview

Analyzing facebook networkswith Gephi (netvizz app)

Beatriz Patraca Dibildox

Gephi

Gephi is a tool for exploring and understanding graphs. Like in the case of Photoshop (but for graphs), the user interacts with the representation, manipulate the structures, shapes and colors to reveal hidden properties.

http://gephi.org

Netvizz 

• Sign into a Facebook account• Search for “netvizz” application• Choose parameters you would like included in the file:

Netvizz

My Netvizz• Network for Peace in Mexico (workgroup)• Nodes: 55  Edges:157

Back to Gephi

• In the Gephi menu bar go to File Menu and Open the .gdf file

• When your file is opened, the report sum up data found and issues.  Click OK

My first representation

• First, you can see a hairball like this:

Run a layout

• Locate the layout module on the left panel • Choose Force Atlas• You can see the layout  properties  below. Click on Run and 

Stop.

Control the layout

• The purpose of layout properties is to let you control the algorithm in order to make a readable representation.

• Force Atlas makes the connected nodes attracted to each other and pushes de unconnected nodes apart to create clusters of connections.

Control the layout

• Set the repulsion strength at 10 000 to expand the graph 

• Click enter to validate the value.• Click stop when it seems as if you have some different clusters.

Repulsion strength: How strongly each pair of connected nodes attracted each other.

Control the layout• You should  now see a graph with the layout applied.

Ranking (degree)• Ranking module lets you configure node’s color and size. • Choose the ranking tab in the top left module and 

choose Degree from the menu.

• Click on apply

Remember: degree=number of connections.

Ranking (color)

• Let’s configure colors.  • Hover your mouse over the gradient bar then double click on each triangle.

• Try to use a bright colors for the highest degree so it’s easy to see who’s the most connected.

• Click on apply

Ranking (result table)

• You can see rank values by enabling the result table.

• Click the table icon in the bottom left of the ranking tab. 

• Click apply

Statistics 

• Click the statistics tab in the top right module.• Click run next to average path length.

• Select directed and click ok

My Statistics• When finished the metric displays its results in a report like this (betweenness, closeness and eccentricity): 

Ranking (Betweenness)

• Return to ranking in the top left module and choose a rank parameter from the dropdown menu: “betweenness centrality”

Ranking (size)

• Click on the icon for size.• Set min size at 10 and max size at 50. Play around  with these numbers depending on the size of your network.

My network (betweenness and size)

• Color: Degree       Size: Betweenness centrality metric

Layout (betweenness)• To keep the large nodes for overlapping smaller ones, go back to the layout panel.

• Check the “Adjust by sizes” option and run again de algorithm for just a moment. So the modules will spread out accordingly.

Labels

• Display node labels

• Set label size proportional with node size

• Use the slider to adjust the overall label size to your liking.  You can also change the font  style by clicking next to the slider

My labels

Community detection

• Go back to the statistics panel and click Run near the “Modularity”. Check “randomize” and click ok.

Partition• The community detection algorithm created a “Modularity class” for each node, wich we’ll use to colorize the communities.

• Locate the partition module on the left panel and click on the refresh button to populate list.

Partition

• Choose “modularity class” from the menu.  You can click “randomize colors” if you don’t like the colors.

• Click apply to colorize.

My partition

Filter• Go to the filters in the top right module and 

open the “topology” folder.  Drag the “degree range” filter in to the “Queries” and drop it to “drag filter here”.

• Click on the “degree range” to activate the filter.  It shows a range slider and the chart that represents the data, the degree distribution here.  Move the slide to sets its lower bound to 2 and filter.  Nodes with a degree inferior to 2 are now hidden.

Preview• At the top left click on the preview tab.

• Under node set check “show labels” and click refresh at the bottom. Click on the presets list and try different configurations.

My preview

My network(some representations)

Export

• Choose to export at the bottom left in either SVF or PDF.  

• Now you have visualized your facebook network community clusters!

My network in pdf

• Based on:http://www.slideshare.net/sociomantic/facebook‐network‐

analysis‐using‐gephi‐3996673http://gephi.org/2010/quick‐start‐tutorial/http://gephi.org/2011/new‐tutorial‐layouts‐in‐gephi/Gephi websiteGephi Wiki Gephi forum

Thanks!patradox ad gmail.com