GithubHelp home page GithubHelp logo

cst_maintenance's Introduction

CST_maintenance

The implementation of the paper "Core Spanning Tree Maintenance for Large Dynamic Graphs." We use the Snap Library to implement the structure of the graph.

preparation

You should install the Snap Library first. http://snap.stanford.edu/index.html

GraphTheory.cpp

Create graph

core *graph = new core("files",n)

  • files: filename
  • n: number of vertices

Read graph

use graph->read_graph(false,flag);

  • if flag=0/1, vertices will be numbered starting from 1/0

Maintain the CST

use graph->Dynamic_maintainences("files", flag1, flag2, flag3); to maintain the CST

  • files;
  • flag1: 0 for dynamic 1 for staric;
  • flag2: for delete 1 for insert;
  • flag3: for 0/1 vertices will be numbered starting from 1/0

Extract the $k$-cores

use graph->Dynamic_kcores("files", flag1, flag2, flag3, k1, k2);

  • files;
  • flag1: 0 for dynamic 1 for staric;
  • flag2: for delete 1 for insert;
  • flag3: for 0/1 vertices will be numbered starting from 1/0
  • extract the k-cores vary from k1 to k2.

Related Work.

Lijun Chang and Lu Qin. Cohesive Subgraph Computation over Large Sparse Graphs. Springer Series in the Data Sciences, 2018

  • [1] Zhang Y, Yu J X, Zhang Y, et al. A fast order-based approach for core maintenance[C]//2017 IEEE 33rd International Conference on Data Engineering (ICDE). IEEE, 2017: 337-348.
  • [2] Lin Z, Zhang F, Lin X, et al. Hierarchical core maintenance on large dynamic graphs[J]. Proceedings of the VLDB Endowment, 2021, 14(5): 757-770.
  • [3] Chang L, Qin L. Cohesive subgraph computation over large sparse graphs[C]//2019 IEEE 35th International Conference on Data Engineering (ICDE). IEEE, 2019: 2068-2071.

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.