graph_tool.clustering

graph_tool.clustering#

This module provides algorithms for calculation of clustering coefficients, a.k.a. transitivity, and related concepts.

Summary#

local_clustering

Return the local clustering coefficients of the vertices.

global_clustering

Return the global clustering coefficient.

square_clustering

Return the square clustering coefficients of the vertices.

edge_clustering

Return the edge clustering coefficients.

extended_clustering

Return the extended clustering coefficients of the vertices.

motifs

Count the occurrence of k-size node-induced subgraphs (motifs).

motif_significance

Obtain the motif significance profile, for subgraphs with k vertices.

triad_census

Return the triad census of the graph.

dyad_census

Return the dyad census of the graph.

generalized_degree

Return the generalized degree of the vertices.

local_scan

Compute the local scan statistics of the vertices.

Bipartite graphs#

butterflies

Return the number of butterflies (cycles of length four) of the vertices, or of the whole graph.

latapy_clustering

Return the bipartite clustering coefficients of Latapy et al. of the vertices.

robins_alexander_clustering

Return the bipartite clustering coefficient of Robins and Alexander.

node_redundancy

Return the redundancy coefficients of the vertices of a bipartite graph.

spectral_bipartivity

Return the spectral bipartivity of the graph.

bipartite_modularity

Compute Barber's modularity of a partition of a bipartite graph.