Skip to content

Analysis of nodes throughout a social media network to determine the influence of a set on the other nodes within the graph.

License

Notifications You must be signed in to change notification settings

johnnyle24/SocialMediaInfluence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Media Influence

Various heuristics for maximizing influence in social networks

Getting started

Installation

This project requires Snap (which only works with python 2.7, and is not available via pip), install it here

It also requires networkx-metis (for which the pip install does not work), install it here

Then, install the requirements using pip install -r requirements.txt

How to run

The following files will run various heuristics, and output the influence of the best found set. The input parameter k corresponds to the size of the initial set of activated nodes.

python greedy_linear.py [k]
python partition_linear.py [k]

You can also use the independent cascade model by doing:

python greedy_cascade.py [k]
python partition_cascade.py [k]

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

Analysis of nodes throughout a social media network to determine the influence of a set on the other nodes within the graph.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published