Skip to content

ZhengtongYan/Packed-Compressed-Sparse-Row

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Packed-Compressed-Sparse-Row

Dynamic data structure for sparse graphs.

compile with g++ -std=c++11 PCSR.cpp

  // initialize the structure with how many nodes you want it to start with
  PCSR pcsr = PCSR(10);

  // add some edges
  for (int i = 0; i < 5; i++) {
    pcsr.add_edge(i, i, 1);
  }
  // update the values of some edges

  for (int i = 0; i < 5; i++) {
    pcsr.add_edge_update(i, i, 2);
  }

  // print out the graph
  pcsr.print_graph();

For more information see https://ieeexplore.ieee.org/abstract/document/8547566

Please cite as:

@inproceedings{wheatman2018packed,
  title={Packed Compressed Sparse Row: A Dynamic Graph Representation},
  author={Wheatman, Brian and Xu, Helen},
  booktitle={2018 IEEE High Performance extreme Computing Conference (HPEC)},
  pages={1--7},
  year={2018},
  organization={IEEE}
}

Subsequent Papers and Projects

This work was continued and made parallel in the paper A Parallel Packed Memory Array to Store Dynamic Graphs

The Parallel PMA was later used in the larger Terrace system. More details can be found in Terrace: A Hierarchical Graph Container for Skewed Dynamic Graphs. The code for terrace which includes the Parallel PMA can be found at https://github.com/PASSIONLab/terrace.

Many ideas from this work also went into the creation of Streaming Sparse Graphs using Efficient Dynamic Sets for which the code can be found at https://github.com/wheatman/SSTGraph.

All of these systems are parallel and much faster than the original PCSR system, but are more complex.

PCSR is not being updated, but I will review any pull requests.

About

Dynamic data structure for sparse graphs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%