SlideShare a Scribd company logo
1 of 4
Download to read offline
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

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 modelsgraphitech
 
Programming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) EnvironmentProgramming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) EnvironmentMahmoud Samir Fayed
 
E2D3 ver. 0.2 Development Instructions
E2D3 ver. 0.2 Development InstructionsE2D3 ver. 0.2 Development Instructions
E2D3 ver. 0.2 Development InstructionsE2D3.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 ToolsRoman 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 ChoiceJack 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 minutesUGIF
 
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 Casesmathieuraj
 
Pnbhfl training final
Pnbhfl training finalPnbhfl training final
Pnbhfl training finalNupur Mishra
 
trafficaaaassignmentpresentationboo.pptx
trafficaaaassignmentpresentationboo.pptxtrafficaaaassignmentpresentationboo.pptx
trafficaaaassignmentpresentationboo.pptxpoodhood49
 
Basic commands of ArcGIS
Basic commands of ArcGISBasic commands of ArcGIS
Basic commands of ArcGISKU Leuven
 
Html viva questions
Html viva questionsHtml viva questions
Html viva questionsVipul Naik
 
Manual to basic gis
Manual to basic gisManual to basic gis
Manual to basic gisQust04
 
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.docxhoney725342
 
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 releasejoseicha
 
Schematics designer tutorial_i
Schematics designer tutorial_iSchematics designer tutorial_i
Schematics designer tutorial_iguestc78605
 

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
 
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
 
Schematics designer tutorial_i
Schematics designer tutorial_iSchematics designer tutorial_i
Schematics designer tutorial_i
 

Recently uploaded

State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!Memoori
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfFIDO Alliance
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxFIDO Alliance
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireExakis Nelite
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...ScyllaDB
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsLeah Henrickson
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...panagenda
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimaginedpanagenda
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...ScyllaDB
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Skynet Technologies
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctBrainSell Technologies
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform EngineeringMarcus Vechiato
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPTiSEO AI
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024Lorenzo Miniero
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...FIDO Alliance
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceSamy Fodil
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe中 央社
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessUXDXConf
 
Your enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jYour enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jNeo4j
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfSrushith Repakula
 

Recently uploaded (20)

State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
Your enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jYour enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4j
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 

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