SlideShare a Scribd company logo
COMM 645 HANDOUT – GEPHI BASICS
Gephi Resources:
•
•
•
•
•
•

Gephi: The Open Graph Viz Platform. Download from www.gephi.org
Gephi Quick Start Tutorial: www.gephi.org/users/quick-start
Gephi Visualization Tutorial: www.gephi.org/users/tutorial-visualization
Gephi Layouts Tutorial: www.gephi.org/users/tutorial-layouts
Gephi Wiki: wiki.gephi.org
Gephi Community Portal: wiki.gephi.org/index.php/Community_portal

Data Formats
Gephi's own files have an extension .gephi.
The software can read many other file formats, including GEXF, GDF, GML, GraphML, Pajek NET files,
and UCINET DL files. You can open any of those by simply going to File -> Open.
Gephi can also read Excel and CSV files. To import data from CSV, you will usually need to prepare two
files – one containing nodes and their attributes, and another containing an edge list and edge attributes
(see the example CSV files used in the class demonstration for Lab 9).
The CSV file containing nodes needs to include a column named "ID" containing - as you might have
guessed – unique node IDs. The edge list CSV should include columns titled "Source" and "Target",
containing node IDs of the start and end node for each edge. In addition, you can include a column
called "Type" indicating the type of each edge ("Undirected" or "Directed").
To import the files, go to the Data Laboratory tab -> Import Spreadsheet button (3 on Fig.3). Select your
file, make sure to select the appropriate table type from the "As Table:" drop-down menu (i.e. Nodes
Table or Edges Table). Import both files, preferably starting with the node table.
Click "Next" and make sure that each column of your data is assigned an appropriate format (e.g. you
can import text fields as "String", categorical numerical data as "Integer", continuous attributes as
"Float", time interval variables for dynamic networks as "TimeInterval", etc.). Click "Finish".
Major sections within Gephi:
•
•
•

Overview Tab:
Data Laboratory Tab:
Preview Tab:

Calculate network measures & set up the network visualization.
Examine and edit the network data (node & edge tables).
Configure the rendering settings (colors, sizes, line width, opacity, etc.)
and preview the visualization.

Download more network handouts at www.kateto.net / www.ognyanova.net

1
Figure 1: The Gephi interface: Overview tab

1

2

7a

8

4
3

7b
5

6
Fig.1 → 1, Partition Tab: Change node/edge color based on a categorical attribute (select the Nodes or
Edges tab, select the attribute from the drop-down Type menu).
Fig.1 → 2, Ranking Tab: Change the color or size of a node/edge/label based on a continuous attribute
(You can select which visual property to change using the buttons in the top right corner of the tab).
Fig.1 → 3, Layout Tab: Select and customize one of the available layout algorithms.
Fig.1 → 4: Interactive selection of nodes/edges; change size/color manually; add nodes/edges, etc.
Fig.1 → 5: Reset the node size, color, label, or label size.
Fig.1 → 6: Change color, size and other characteristics applying to all nodes, edges, and labels.
Fig.1 → 7a, Filters Tab: Apply filters to select specific nodes and/or edges from your network. The filters
are applied through dragging and dropping onto Fig.3 → 7b: Queries.
The filters based on attributes include "Equal" (select elements with particular attribute values),
"Partition"(select different levels of categorical attributes), "Range" (select nodes/edges with attribute
values in a particular range – for instance out-degree between 1 and 4), Inter-edges (select edges with
particular attributes – for one-mode networks), Intra-edges (select edges with particular attributes,
going across the modes of multimode networks), and so on.

Download more network handouts at www.kateto.net / www.ognyanova.net

2
Filters based on edges allow you to select ties with different properties – e.g. a particular range of
weights. Topology filters allow for selection based on network structure – components, K-cores, degree
range, etc. Operators allow you to combine other filters in different ways (find their intersection, union,
complement, etc.).
Fig.1 → 8, Statistics Tab: To calculate a network/node/edge statistic, click the "Run" button next to it.
Once calculated, many measures will be available in the Data Laboratory – and can be used in the
visualization (e.g. computing eigenvector centrality will allow you to resize nodes based on that
attribute). Note that to get betweenness and closeness centrality, you need to calculate the average
path length (hit "Run" next to Avg. Path Length).

Figure 2: The Gephi interface: Data Laboratory

1

2

3

4

Fig.2 → 1: Data table for nodes and node attributes.
Fig.2 → 2: Data table for edges and edge attributes.
Fig.2 → 3: Import spreadsheets: node and edge data from Excel/CSV/etc.
Fig.2 → 4: Manipulate data columns (you can also change individual values directly by clicking on them
and typing their new values).

Download more network handouts at www.kateto.net / www.ognyanova.net

3
Figure 3: The Gephi interface: Preview Tab

1

2
3

4

Fig.3 → 1: Configure rendering settings: size, color, and other properties of nodes, edges, and labels.
Those apply to the visualization in general. If you want to change specific properties (e.g. the color of a
particular node subset, the width of some edges), you need to go back to the Overview tab (Fig.1).
Fig.3 → 2: If you are visualizing a very large network, rendering it may be time- and resource-intensive.
While you're tweaking the visualization properties, you may want to preview a smaller subgraph rather
than the full network. This option is controlled by the Preview Ratio setting.
Fig.3 → 3: After you change the rendering settings you need to refresh the network preview.
Fig.3 → 4: Change the preview background color.

Save and Export
Once you are satisfied with your network visualization, you can save your project in one of multiple
supported formats. To save as a graph file, go to File -> Export -> Graph File and select your preferred
format. To save as an image or PDF file, go to File -> Export -> SVG/PDF/PNG File. If installed, several
optional Gephi plugins will also allow you to export to an interactive web project that can be easily
embedded into your website.

Download more network handouts at www.kateto.net / www.ognyanova.net

4

More Related Content

Similar to Comm645 gephi handout

Gsoc proposal
Gsoc proposalGsoc proposal
Gsoc proposal
AyushBansal122
 
Polyline download and visualization over terrain models
Polyline download and visualization over terrain modelsPolyline download and visualization over terrain models
Polyline download and visualization over terrain models
graphitech
 
Programming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) EnvironmentProgramming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) Environment
Mahmoud Samir Fayed
 
E2D3 ver. 0.2 Development Instructions
E2D3 ver. 0.2 Development InstructionsE2D3 ver. 0.2 Development Instructions
E2D3 ver. 0.2 Development Instructions
E2D3.org
 
Building Geodatabase 2014
Building Geodatabase 2014 Building Geodatabase 2014
Building Geodatabase 2014
Najed Hanahnah
 
Report: Test49 Geant4 Monte-Carlo Models Testing Tools
Report: Test49 Geant4 Monte-Carlo Models Testing ToolsReport: Test49 Geant4 Monte-Carlo Models Testing Tools
Report: Test49 Geant4 Monte-Carlo Models Testing Tools
Roman Atachiants
 
A Holistic Approach to Addressing the Cloud's Paradox of Choice
A Holistic Approach to Addressing the Cloud's Paradox of ChoiceA Holistic Approach to Addressing the Cloud's Paradox of Choice
A Holistic Approach to Addressing the Cloud's Paradox of Choice
Jack Mills
 
Ugif 10 2012 lycia2 introduction in 45 minutes
Ugif 10 2012 lycia2 introduction in 45 minutesUgif 10 2012 lycia2 introduction in 45 minutes
Ugif 10 2012 lycia2 introduction in 45 minutes
UGIF
 
Geoprocessing
GeoprocessingGeoprocessing
Geoprocessing
Ehsan Hamzei
 
Geodatabase design steps for students.pptx
Geodatabase design steps for students.pptxGeodatabase design steps for students.pptx
Geodatabase design steps for students.pptx
azadimran555
 
Spatial Data Integrator - Software Presentation and Use Cases
Spatial Data Integrator - Software Presentation and Use CasesSpatial Data Integrator - Software Presentation and Use Cases
Spatial Data Integrator - Software Presentation and Use Cases
mathieuraj
 
Pnbhfl training final
Pnbhfl training finalPnbhfl training final
Pnbhfl training final
Nupur Mishra
 
trafficaaaassignmentpresentationboo.pptx
trafficaaaassignmentpresentationboo.pptxtrafficaaaassignmentpresentationboo.pptx
trafficaaaassignmentpresentationboo.pptx
poodhood49
 
Content and user types layout
Content and user types layoutContent and user types layout
Content and user types layout
Rubedo, a WebTales solution
 
Basic commands of ArcGIS
Basic commands of ArcGISBasic commands of ArcGIS
Basic commands of ArcGIS
KU Leuven
 
Html viva questions
Html viva questionsHtml viva questions
Html viva questions
Vipul Naik
 
Manual to basic gis
Manual to basic gisManual to basic gis
Manual to basic gis
Qust04
 
1 Project 2 Introduction - the SeaPort Project seri.docx
1  Project 2 Introduction - the SeaPort Project seri.docx1  Project 2 Introduction - the SeaPort Project seri.docx
1 Project 2 Introduction - the SeaPort Project seri.docx
honey725342
 
Frac paq user guide v2.0 release
Frac paq user guide v2.0 releaseFrac paq user guide v2.0 release
Frac paq user guide v2.0 release
joseicha
 
spss Help
spss Helpspss Help
spss Help
Saroj Suwal
 

Similar to Comm645 gephi handout (20)

Gsoc proposal
Gsoc proposalGsoc proposal
Gsoc proposal
 
Polyline download and visualization over terrain models
Polyline download and visualization over terrain modelsPolyline download and visualization over terrain models
Polyline download and visualization over terrain models
 
Programming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) EnvironmentProgramming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) Environment
 
E2D3 ver. 0.2 Development Instructions
E2D3 ver. 0.2 Development InstructionsE2D3 ver. 0.2 Development Instructions
E2D3 ver. 0.2 Development Instructions
 
Building Geodatabase 2014
Building Geodatabase 2014 Building Geodatabase 2014
Building Geodatabase 2014
 
Report: Test49 Geant4 Monte-Carlo Models Testing Tools
Report: Test49 Geant4 Monte-Carlo Models Testing ToolsReport: Test49 Geant4 Monte-Carlo Models Testing Tools
Report: Test49 Geant4 Monte-Carlo Models Testing Tools
 
A Holistic Approach to Addressing the Cloud's Paradox of Choice
A Holistic Approach to Addressing the Cloud's Paradox of ChoiceA Holistic Approach to Addressing the Cloud's Paradox of Choice
A Holistic Approach to Addressing the Cloud's Paradox of Choice
 
Ugif 10 2012 lycia2 introduction in 45 minutes
Ugif 10 2012 lycia2 introduction in 45 minutesUgif 10 2012 lycia2 introduction in 45 minutes
Ugif 10 2012 lycia2 introduction in 45 minutes
 
Geoprocessing
GeoprocessingGeoprocessing
Geoprocessing
 
Geodatabase design steps for students.pptx
Geodatabase design steps for students.pptxGeodatabase design steps for students.pptx
Geodatabase design steps for students.pptx
 
Spatial Data Integrator - Software Presentation and Use Cases
Spatial Data Integrator - Software Presentation and Use CasesSpatial Data Integrator - Software Presentation and Use Cases
Spatial Data Integrator - Software Presentation and Use Cases
 
Pnbhfl training final
Pnbhfl training finalPnbhfl training final
Pnbhfl training final
 
trafficaaaassignmentpresentationboo.pptx
trafficaaaassignmentpresentationboo.pptxtrafficaaaassignmentpresentationboo.pptx
trafficaaaassignmentpresentationboo.pptx
 
Content and user types layout
Content and user types layoutContent and user types layout
Content and user types layout
 
Basic commands of ArcGIS
Basic commands of ArcGISBasic commands of ArcGIS
Basic commands of ArcGIS
 
Html viva questions
Html viva questionsHtml viva questions
Html viva questions
 
Manual to basic gis
Manual to basic gisManual to basic gis
Manual to basic gis
 
1 Project 2 Introduction - the SeaPort Project seri.docx
1  Project 2 Introduction - the SeaPort Project seri.docx1  Project 2 Introduction - the SeaPort Project seri.docx
1 Project 2 Introduction - the SeaPort Project seri.docx
 
Frac paq user guide v2.0 release
Frac paq user guide v2.0 releaseFrac paq user guide v2.0 release
Frac paq user guide v2.0 release
 
spss Help
spss Helpspss Help
spss Help
 

Recently uploaded

Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 

Recently uploaded (20)

Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 

Comm645 gephi handout

  • 1. COMM 645 HANDOUT – GEPHI BASICS Gephi Resources: • • • • • • Gephi: The Open Graph Viz Platform. Download from www.gephi.org Gephi Quick Start Tutorial: www.gephi.org/users/quick-start Gephi Visualization Tutorial: www.gephi.org/users/tutorial-visualization Gephi Layouts Tutorial: www.gephi.org/users/tutorial-layouts Gephi Wiki: wiki.gephi.org Gephi Community Portal: wiki.gephi.org/index.php/Community_portal Data Formats Gephi's own files have an extension .gephi. The software can read many other file formats, including GEXF, GDF, GML, GraphML, Pajek NET files, and UCINET DL files. You can open any of those by simply going to File -> Open. Gephi can also read Excel and CSV files. To import data from CSV, you will usually need to prepare two files – one containing nodes and their attributes, and another containing an edge list and edge attributes (see the example CSV files used in the class demonstration for Lab 9). The CSV file containing nodes needs to include a column named "ID" containing - as you might have guessed – unique node IDs. The edge list CSV should include columns titled "Source" and "Target", containing node IDs of the start and end node for each edge. In addition, you can include a column called "Type" indicating the type of each edge ("Undirected" or "Directed"). To import the files, go to the Data Laboratory tab -> Import Spreadsheet button (3 on Fig.3). Select your file, make sure to select the appropriate table type from the "As Table:" drop-down menu (i.e. Nodes Table or Edges Table). Import both files, preferably starting with the node table. Click "Next" and make sure that each column of your data is assigned an appropriate format (e.g. you can import text fields as "String", categorical numerical data as "Integer", continuous attributes as "Float", time interval variables for dynamic networks as "TimeInterval", etc.). Click "Finish". Major sections within Gephi: • • • Overview Tab: Data Laboratory Tab: Preview Tab: Calculate network measures & set up the network visualization. Examine and edit the network data (node & edge tables). Configure the rendering settings (colors, sizes, line width, opacity, etc.) and preview the visualization. Download more network handouts at www.kateto.net / www.ognyanova.net 1
  • 2. Figure 1: The Gephi interface: Overview tab 1 2 7a 8 4 3 7b 5 6 Fig.1 → 1, Partition Tab: Change node/edge color based on a categorical attribute (select the Nodes or Edges tab, select the attribute from the drop-down Type menu). Fig.1 → 2, Ranking Tab: Change the color or size of a node/edge/label based on a continuous attribute (You can select which visual property to change using the buttons in the top right corner of the tab). Fig.1 → 3, Layout Tab: Select and customize one of the available layout algorithms. Fig.1 → 4: Interactive selection of nodes/edges; change size/color manually; add nodes/edges, etc. Fig.1 → 5: Reset the node size, color, label, or label size. Fig.1 → 6: Change color, size and other characteristics applying to all nodes, edges, and labels. Fig.1 → 7a, Filters Tab: Apply filters to select specific nodes and/or edges from your network. The filters are applied through dragging and dropping onto Fig.3 → 7b: Queries. The filters based on attributes include "Equal" (select elements with particular attribute values), "Partition"(select different levels of categorical attributes), "Range" (select nodes/edges with attribute values in a particular range – for instance out-degree between 1 and 4), Inter-edges (select edges with particular attributes – for one-mode networks), Intra-edges (select edges with particular attributes, going across the modes of multimode networks), and so on. Download more network handouts at www.kateto.net / www.ognyanova.net 2
  • 3. Filters based on edges allow you to select ties with different properties – e.g. a particular range of weights. Topology filters allow for selection based on network structure – components, K-cores, degree range, etc. Operators allow you to combine other filters in different ways (find their intersection, union, complement, etc.). Fig.1 → 8, Statistics Tab: To calculate a network/node/edge statistic, click the "Run" button next to it. Once calculated, many measures will be available in the Data Laboratory – and can be used in the visualization (e.g. computing eigenvector centrality will allow you to resize nodes based on that attribute). Note that to get betweenness and closeness centrality, you need to calculate the average path length (hit "Run" next to Avg. Path Length). Figure 2: The Gephi interface: Data Laboratory 1 2 3 4 Fig.2 → 1: Data table for nodes and node attributes. Fig.2 → 2: Data table for edges and edge attributes. Fig.2 → 3: Import spreadsheets: node and edge data from Excel/CSV/etc. Fig.2 → 4: Manipulate data columns (you can also change individual values directly by clicking on them and typing their new values). Download more network handouts at www.kateto.net / www.ognyanova.net 3
  • 4. Figure 3: The Gephi interface: Preview Tab 1 2 3 4 Fig.3 → 1: Configure rendering settings: size, color, and other properties of nodes, edges, and labels. Those apply to the visualization in general. If you want to change specific properties (e.g. the color of a particular node subset, the width of some edges), you need to go back to the Overview tab (Fig.1). Fig.3 → 2: If you are visualizing a very large network, rendering it may be time- and resource-intensive. While you're tweaking the visualization properties, you may want to preview a smaller subgraph rather than the full network. This option is controlled by the Preview Ratio setting. Fig.3 → 3: After you change the rendering settings you need to refresh the network preview. Fig.3 → 4: Change the preview background color. Save and Export Once you are satisfied with your network visualization, you can save your project in one of multiple supported formats. To save as a graph file, go to File -> Export -> Graph File and select your preferred format. To save as an image or PDF file, go to File -> Export -> SVG/PDF/PNG File. If installed, several optional Gephi plugins will also allow you to export to an interactive web project that can be easily embedded into your website. Download more network handouts at www.kateto.net / www.ognyanova.net 4