Modularity
As an example of how math is used in network science, several popular community detection algorithms (including those discussed in Chapter 7, In-Between – Communities) work by maximizing a mathematical property called modularity. Modularity is the difference between the fraction of internal edges and how many you'd expect if edges were assigned randomly (without changing vertex degrees).
Let's assume an undirected network. Given a set of vertex labels c, with corresponding vertex degrees ki for i∊c, the expected fraction of internal edges can be approximately written as follows:
∑i∊c ∑j∊c kikj / (2 |E|)2,
Here, |E| is the total number of edges. The true number of edges between vertices i and j is given by element Ai,j of the adjacency ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access