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.
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.