When writing the graph, add degree centrality scores to the nodes.