Git Product home page Git Product logo

tbfc's Introduction

TBFC

This repository contains the source code for our paper: Efficient Temporal Butterfly Counting and Enumeration on Temporal Bipartite Graphs.

Requirements

  • cmake (>3.15)
  • g++ (supports c++17)
  • GNU Make

Datasets

All the networks can be downloaded from KONECT.

Datasets link
WQ http://konect.cc/networks/edit-bnwikisource/
WN http://konect.cc/networks/edit-itwikinews/
SO http://konect.cc/networks/stackexchange-stackoverflow/
CU http://konect.cc/networks/citeulike-ti/
BS http://konect.cc/networks/bibsonomy-2ti/
TW http://konect.cc/networks/munmun_twitterex_ut/
AM http://konect.cc/networks/amazon-ratings/
ER http://konect.cc/networks/edit-ruwiktionary/
EP http://konect.cc/networks/epinions-rating/
LF http://konect.cc/networks/lastfm_band/
WT http://konect.cc/networks/edit-enwiktionary/

Usage

  1. Download datasets.
  2. Compile project with make build and cd bin.
  3. Reformat datasets with ./reformat <data_path>, where <data_path> is the path for input dataset, e.g., ./reformat ../data/WQ.
  4. Run the specific algorithm with ./main <argv[1]> <argv[2]> <argv[3]> <...>, such as ./main ../data/WQ 3456000 3. The specific parameters are as follows. Note that the output folder needs to be created in advance to save the instances.
argv[1] = data_path
argv[2] = delta
argv[3] = algorithm :
         -10 : TBE (not print instance, for experiments)
         -11 : TBE (print instance)
         -20 : TBE$^+$ (not print instance, for experiments)
         -21 : TBE$^+$ (print instance)
          1 : TBC
          2 : TBC$^+$
          3 : TBC$^{++}$
          4 : STBC
          5 : STBC$^+$
(optional)
argv[4] = |Window| for algorithm 4,5 (default: 10000)
argv[5] = |Stride|/|window| for algorithm 4,5 (default: 0.05)
argv[6] = |Thread| for algorithm 5 (default: 8)

tbfc's People

Contributors

xwcai98 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.