D. Adjust the appearance of nodes and edges

  1. Next, let’s move to the Overview tab. This tab is where we do our network analysis, layout and visualizations.

    The 'Overview' button underneath Gephi's top menu highlighted. The Gaphi graph pane now visible with nodes and edges.

    Let’s look at some of the tools along the edge of the graph pane, starting from the top left. The arrow icon is a direct selection tool and the rectangle allows you to draw a rectangle around the items you want selected. Once nodes are selected, then you can adjust their sizes and colours.

    The 'Direct Selection' tool located on the left of Graph pane, highlighted. The 'Rectangle Selection' tool located on the left of Graph pane, highlighted.

    For example, use the rectangle tool to draw a rectangle around all the nodes to select the whole graph.

    Rectangle selection box over the entire whole graph.

  2. Next, click on the icon that looks like a two sided arrow in a circle. This tool is called sizer and it can be used to adjust the sizes of nodes.

    The 'Sizer' tool located on the left of Graph pane, highlighted.

    Select the sizer tool. Notice that the tool gives us a hint on how to operate it at the top of the pane.

    Tool hints at the top of the Gephi graph pane, highlighted.

    Click on the white space next to the graph and drag the mouse vertically. All the nodes should be changing size.

    larger nodes on the Gephi graph pane.

  3. Another tool is a dragging hand icon. You can use it to move nodes around.

    The 'Drag' tool located on the left of Graph pane, highlighted.

    Select it and then use this tool to manually drag and reposition a node in your graph.

    Node being moved with the drag tool on the Gephi graph pane.

  4. We can colour certain nodes manually by using the icon that looks like a paint brush – we can use this to highlight a specific node of interest.

    The 'Painter' tool located on the left of Graph pane, highlighted.

    Try selecting a node and colouring it red. Every time you click on a node, it gets more vibrant.

    The Graph pane with one of the displayed graph's nodes red as opposed to its previous grey.

  5. The next icon after the sizer icon is called brush. Note that when we hover over a tool, it describes how the tools works in a pop-up.

    The 'Brush' tool located on the left of Graph pane, highlighted. The tool's description floats below it.

    In this case, it colours nodes and their nearest neighbour (i.e., directly connected) the same colour. Select the tool, change the colour at the top to blue, and then select a node.

    The 'Choose a Color' popup window, with a blue selected.

    Click multiple times as before to make the colour brighter.

    The Graph pane with three of the displayed graph's nodes with a blue hue.

  6. The next two icons allow us to manually create a new node or a new edge. So, in theory we could draw out our network manually, instead of preparing node and edge spreadsheets. Unless your network is very small, this would be a labour-intensive process that could be prone to error.

    The 'Node' and 'Edge' tools located on the left of Graph pane, highlighted.

  7. We can reset colours on our graph using the grey rectangle icon near the bottom left of the graph pane. Click on that now.

    The 'Reset colors' tool located on the bottom left of Graph pane, highlighted.

  8. To colour nodes and edges in a graph based on specific attributes, use the appearance pane.

    The 'Appearance' pane, located on the right of the 'Graph' pane, is highlighted.

    We can toggle between visualizing nodes and edges – let’s start with nodes. There are four ways you can affect the appearance of nodes: we can colour-code the nodes based on an attribute, such as alliance in our case, we can size the nodes based on an attribute, such as degree, and we can also affect the colour and size of labels on our nodes. Let’s first take a look at colour. Select the painter’s palette icon. Here, the default is the Unique option, which will colour all the nodes a unique colour, in this case grey.

    The 'Color' button at the top of the 'Appearance' pane highlighted.

    Let’s try the Ranking option, where it will select a sequential colour palette (so one colour changing from light to dark) to show the range of a numeric variable. Select Ranking and choose Degree from the drop-down menu.

    In the 'Appearance' pane, the 'Ranking' option as well as 'Degree' option listed in the dropdown menu are both highlighted.

    Then click on Apply.

    In the Appearance panel, the Apply button highlighted.

    You can see that the darker coloured nodes have more connections.

    The 'Apply' button at the bottom of the 'Appearance' pane is highlighted. The resulting colour-coded graph is also displayed.

  9. However, colours are more effective when used for categorical data. For our example, we want to use partition and assign a qualitative colour palette where different colours match different categories. Let’s click on Partition and select the attribute alliance.

    In the 'Appearance' pane, the 'Partition' option as well as 'alliance' option listed in the dropdown menu are both highlighted.

    We will see different colours assigned to correspond to different alliances. You can click on an individual colour to change it, or click on the palette link to select from predefined palettes. Let’s keep the default. Click on Apply.

    In the Appearance panel, the Apply button highlighted.

    Now the nodes on your graph have been colour-coded correspond to different alliances.

    The 'Apply' button at the bottom of the 'Appearance' pane is highlighted. The resulting colour-coded graph is also displayed.

  10. Using sizes in visualizations is an effective way of displaying numerical variables, so let’s size the nodes by a numeric attribute that we have: Degree. Click on the icon with multiple circles for node size.

    The 'Size' button at the top of 'Appearance' pane, highlighted.

    The unique option is where you specify a set size for all nodes, but we want ranking where the node sizes will vary by degree. Click on Ranking, select Degree from the drop-down menu.

    In the 'Appearance' pane, the 'Ranking' option as well as 'Degree' option listed in the dropdown menu are both highlighted.

    Set the Min size to 20 and the Max size to 50, and then click on Apply.

    In the Appearance panel, the Apply button highlighted.

    You can see that the nodes on your graph have been sized according to their different degrees.

    The minimum and maximum size and the 'Apply' button in the 'Appearance' pane are all highlighted. The resulting graph is also displayed.

  11. So far we’ve been playing with node appearance. We could also adjust the edge appearance by selecting Edges in the appearance pane.

    The 'Appearance' pane with the 'Edges' tab highlighted.

    There are several options to change colours and adjust labels. We could for example just colour all our edges grey by selecting Unique for colour and keeping the default grey colour specified and then clicking on Apply. However, we have an attribute for our edges, so for our graph let’s use partition to colour them by relationship type. Click on Partition for colour, and then select relationship.

    In the 'Appearance' pane, the 'Partition' option as well as 'relationship' option listed in the dropdown menu are both highlighted.

    Finally, click on Apply.

    In the Appearance panel, the Apply button highlighted.

    Now the edges on your graph have been colour-coded correspond to their different relationships.

    The 'Apply' button at the bottom of the 'Appearance' pane is highlighted. The resulting graph is also displayed.

Technique: Data Visualization | Tools: Gephi


First created: September 13, 2021
Last updated: May 08, 2026

Tutorial maintained by Kelly Schultz.

Tutorial created by Kelly Schultz.

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International icon