Book Image

Gephi Cookbook

Book Image

Gephi Cookbook

Overview of this book

Table of Contents (18 chapters)
Gephi Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Configuring the colors of edge labels in a graph by ranking edges


Earlier in this chapter, we learned how to reconfigure the colors of node labels in a graph by ranking the graph. In this recipe, we will learn how to perform the same operation for edge labels.

Getting ready

Load the Les Misérables graph in Gephi. Click on the small upward-facing triangle in the bottom-right corner of the Graph panel to expand the bottom panel. In the Labels tab of this panel, check the checkbox next to Edge. Now click on Configure and then click on Edge. Select the checkbox next to Weight and hit OK to make the node labels appear on the graph. To make sure that the final visualization is neat and comprehensible, run the Fruchterman Reingold algorithm, followed by the Label Adjust algorithm, on this graph.

How to do it…

To configure the colors of edge labels by ranking edges in a graph, follow these steps:

  1. Load the Les Misérables network into Gephi.

  2. In the Ranking panel, click on the Edges tab.

  3. Select the button...