trumania.components.social_networks package¶
Submodules¶
trumania.components.social_networks.erdos_renyi module¶
- Bases: - trumania.core.circus.Circus- Circus mix-in that provides method to build ER random graph - Adds to this population a relationship from and to its members based an ER random graph 
 
- Parameters: - customer_ids (list) – list of IDs as defined in the data
- p (float) – probability of existence of 1 edge
- seed (int) – seed for random generator
 - Return type: - Pandas DataFrame, with two columns (A and B) - Returns: - all edges in the graph