Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 2.3 KB

generate-synthetic-networks.rst

File metadata and controls

61 lines (44 loc) · 2.3 KB

Generate synthetic networks

It is necessary to benchmark our algorithm via synthetic networks, where we have perfect confidence on the model parameters. Here we can control the nodes' block membership b, the edge count matrix ers, and the degree distribution d. Once we specified these 3 parameters, we call Graph-tool's generate_sbm function to generate a graph-tool graph instance, and then use that instance as an input for our biSBM.optimalks.OptimalKs class.

Block membership b

Edge count matrix ers

Easy cases

The easy cases are bipartite version of the planted partition models. It is a (Ka, Kb)-bipartite structure with ers = pc/K + (1 − p)(1 − c)/K(K − 1), where Ka = Kb = K and p = cout/cin is a parameter that controls how crisp the structure is. When p = 0, we expect no connections at all between nodes of different groups, i.e., ers = Eδrs/K.

A easy case with \langle k\rangle = 10 and p=0.1, planted as (K_a, K_b) = (5, 5) equally-sized communities.

A easy case with k⟩ = 10 and p = 0.1, planted as (Ka, Kb) = (5, 5) equally-sized communities.

Hard cases

The hard cases are planted networks where Ka ≠ Kb, but the edge count matrix is still designed in a way that allow the control of network structural strength.

A hard case with \langle k\rangle = 10 and p=0.1, planted as (K_a, K_b) = (5, 31) equally-sized communities.

A hard case with k⟩ = 10 and p = 0.1, planted as (Ka, Kb) = (5, 31) equally-sized communities.

Even harder cases

A even harder case is simply a random draw out of the ensemble of edge count matrices where we only fix Ka and Kb.

A harder case with \langle k\rangle = 10, planted as (K_a, K_b) = (5, 31) equally-sized communities. This is the strongest structure out of 10^6 random e_{rs} draws.

A harder case with k⟩ = 10, planted as (Ka, Kb) = (5, 31) equally-sized communities. This is the strongest structure out of 106 random ers draws.

Degree distribution d