Skip to content

SuperInstance/social-conservation

social-conservation

Social network conservation analysis — engagement level conservation on stochastic block model graphs via graph Laplacian.

Analyzes conservation of "engagement level" on social network graphs using the graph Laplacian. Uses stochastic block models to generate realistic community structure. Measures how well engagement is conserved (smooth) across the social graph — high conservation means communities are homogeneous.

What This Gives You

  • Stochastic block model — configurable community structure with engagement attributes
  • Conservation of engagement — smoothness of engagement across the social graph
  • Community detection — spectral partitioning vs ground truth
  • Bridge detection — inter-community edges where conservation breaks
  • Attribute influence — correlation, homophily, influence, and random attribute types

Quick Start

pip install numpy networkx matplotlib
python analysis.py

How It Fits

Part of the SuperInstance ecosystem:

  • persistent-social — Social network TDA in Go
  • social-conservation — Social network spectral analysis in Python (this repo)

License

MIT

About

Spectral conservation analysis of social networks — bot detection, echo chambers, influence

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages