networkx 2.8.2 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
robins_alexander_clustering(G)

Robins and Alexander defined bipartite clustering coefficient as four times the number of four cycles :None:None:`C_4` divided by the number of three paths :None:None:`L_3` in a bipartite graph:

$$CC_4 = \frac{4 * C_4}{L_3}$$

Parameters

G : graph

a bipartite graph

Returns

clustering : float

The Robins and Alexander bipartite clustering for the input graph.

Compute the bipartite clustering of G.

See Also

latapy_clustering
networkx.algorithms.cluster.square_clustering

Examples

>>> from networkx.algorithms import bipartite
... G = nx.davis_southern_women_graph()
... print(round(bipartite.robins_alexander_clustering(G), 3)) 0.468
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

networkx.algorithms.bipartite.cluster.latapy_clustering networkx.algorithms.bipartite.cluster.robins_alexander_clustering

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /networkx/algorithms/bipartite/cluster.py#211
type: <class 'function'>
Commit: