SlideShare una empresa de Scribd logo
1 de 4
Descargar para leer sin conexión
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

Más contenido relacionado

Similar a Comm645 gephi handout

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
 
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
 
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
 
trafficaaaassignmentpresentationboo.pptx
trafficaaaassignmentpresentationboo.pptxtrafficaaaassignmentpresentationboo.pptx
trafficaaaassignmentpresentationboo.pptx
poodhood49
 
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
 
Schematics designer tutorial_i
Schematics designer tutorial_iSchematics designer tutorial_i
Schematics designer tutorial_i
guestc78605
 

Similar a 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
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

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