Centrality Centrality degree_centrality = query.compute_degree_centrality() betweenness = query.compute_betweenness_centrality()