communicability_exp(G)
Communicability between pair of node (u,v) of node in G is the sum of walks of different lengths starting at node u and ending at node v.
This algorithm uses matrix exponentiation of the adjacency matrix.
Let G=(V,E) be a simple undirected graph. Using the connection between the powers of the adjacency matrix and the number of walks in the graph, the communicability between nodes u and v is ,
$$C(u,v) = (e^A)_{uv},$$where :None:None:`A`
is the adjacency matrix of G.
If the graph is not undirected and simple.
Dictionary of dictionaries keyed by nodes with communicability as the value.
Returns communicability between all pairs of nodes in G.
communicability
Communicability between pairs of nodes in G.
communicability_betweenness_centrality
Communicability betweeness centrality for each node in G.
>>> G = nx.Graph([(0, 1), (1, 2), (1, 5), (5, 4), (2, 4), (2, 3), (4, 3), (3, 6)])See :
... c = nx.communicability_exp(G)
The following pages refer to to this document either explicitly or contain code examples using this.
networkx.algorithms.communicability_alg.communicability_exp
networkx.algorithms.communicability_alg.communicability
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