Giter Site home page Giter Site logo

yuzhimanhua / influence-maximization Goto Github PK

View Code? Open in Web Editor NEW
33.0 4.0 3.0 2.37 MB

Top-K Influential Nodes in Social Networks: A Game Perspective (SIGIR'17)

License: Apache License 2.0

C++ 100.00%
influence-maximization graph-mining social-network-analysis

influence-maximization's Introduction

Top-K Influential Nodes in Social Networks: A Game Perspective

License

This repository contains the source code for Top-K Influential Nodes in Social Networks: A Game Perspective.

Full Version

The full version of our paper can be found here.

Code

To run our code, please type the following commands:

g++ Greedy++.cpp -o Greedy++
./Greedy++ [Input file] [Output File] [Top-K, optional, default=20] [Directed or Undirected Graph, optional, default = 'U']

For example,

g++ Greedy++.cpp -o Greedy++
./Greedy++ data/GrQc.txt out.txt 20

The output will have k lines. Each line includes two numbers: Node ID, Estimated Marginal Gain (based on the snapshots). For example,

131 39.020000
124 35.669998
639 35.570000
100 32.230000
15 26.719999

To accurately calculate the influence of the selected seed set, please use

g++ Calc_Inf.cpp -o Calc_Inf
./Calc_Inf [Network File] [Seed Node File] [Top-K, optional, default=20] [Directed or Undirected Graph, optional, default = 'U']

For example,

g++ Calc_Inf.cpp -o Calc_Inf
./Calc_Inf data/Epinions.txt out.txt  5  D

Citation

If you find this repository useful, please cite the following paper:

@inproceedings{zhang2017top,
  title={Top-K Influential Nodes in Social Networks: A Game Perspective},
  author={Zhang, Yu and Zhang, Yan},
  booktitle={SIGIR'17},
  pages={1029--1032},
  year={2017}
}

influence-maximization's People

Contributors

yuzhimanhua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.