1.3.1 ā€¢ Published 1 year ago

nvgraph.sh v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

CLI for nvGraph, which is a GPU-based graph analytics library written by NVIDIA, using CUDA. šŸš Shell, šŸ“œ Files, šŸ“˜ Wiki.

This is for running nvGraph functions right from the CLI with graphs in MatrixMarket format (.mtx) directly. It just needs a x86_64 linux machine with NVIDIA GPU drivers installed. Execution time, along with the results can be saved in JSON/YAML file. The executable code is written in C++. You can install this with npm install -g nvgraph.sh.

nvGraph, as mentioned above, is a GPU-based graph analytics library written by NVIDIA. It provides four core graph algorithms: Single Source Shortest Path (SSSP), PageRank, Triangle count, and Breadth First Search (BFS) traversal. Data is loaded into the GPU in Compressed Sparse Row (CSR) format, upon which computation is performed. Here, we load the graph stored in MatrixMarket format (a text-based file format for sparse matrices) into a dynamic graph data structure in the host (CPU) memory, which is then converted to CSR format and then transferred to the device (GPU) memory. Computed results are then copied back to the host memory, and written to the output file in suitable format (JSON/YAML). Note that measured time only includes the time required for computation on the GPU.

The SSSP algorithm accepts the source vertex as an argument, and returns the shortest distance to each vertex form the source vertex. The PageRank algorithm accepts the damping factor, tolerance, and max. iterations as arguments, and returns the rank of each vertex. In addition to ranks of vertices in case of the PageRank algorithm, we like to also obtain additional analytics of the rank values, i.e., Lorenz curve, and Gini coefficient. The Triangle count algorithm, unsurprisingly, counts the number of triangles in the graph. The BFS traversal algorithm accepts the source vertex as an argument, traverses the graph in breadthwise manner, and returns the distance and predecessor of each vertex from the source vertex. Note that detailed results are written to the output file only when the full (-f) flag is provided.

Alas, nvGraph is now no more actively developed. NVIDIA started developing cuGraph a collection of graph analytics that process data found in GPU Dataframes as part of RAPIDS.

Stability: Experimental.

## Finds single source shortest path from source vertex
## ā†’ returns distances
$ nvgraph sssp -o=out.json -f web-Google.mtx -s=1

## Finds pagerank of all vertices
## ā†’ returns ranks
$ nvgraph pagerank -o=out.json -f web-Google.mtx -a=0.85 -t=1e-6

## Counts triangles in undirected, lower triangular graph
## ā†’ returns count
$ nvgraph triangle-count -o=out.json -f web-Google.mtx

## Traverses breadth-first from source vertex
## ā†’ returns distances, predecessors
$ nvgraph traversal-bfs -o=out.json -f web-Google.mtx -s=1

Index

CommandAction
pagerankFinds pagerank of all vertices.
ssspFinds single source shortest path from source vertex.
traversal-bfsTraverses breadth-first from source vertex.
triangle-countCounts triangles in undirected, lower triangular graph.

References

npm.io ORG DOI

1.2.41

1 year ago

1.2.42

1 year ago

1.2.40

1 year ago

1.2.45

1 year ago

1.2.46

1 year ago

1.2.43

1 year ago

1.2.44

1 year ago

1.2.49

1 year ago

1.2.47

1 year ago

1.2.48

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.27

1 year ago

1.2.28

1 year ago

1.2.25

1 year ago

1.2.26

1 year ago

1.2.29

1 year ago

1.2.30

1 year ago

1.2.31

1 year ago

1.2.34

1 year ago

1.2.35

1 year ago

1.2.32

1 year ago

1.2.33

1 year ago

1.2.38

1 year ago

1.2.39

1 year ago

1.2.36

1 year ago

1.2.37

1 year ago

1.2.24

1 year ago

1.2.8

2 years ago

1.2.12

2 years ago

1.2.13

2 years ago

1.2.11

2 years ago

1.2.16

2 years ago

1.2.14

2 years ago

1.2.15

2 years ago

1.2.18

2 years ago

1.2.19

2 years ago

1.2.20

2 years ago

1.2.21

2 years ago

1.2.22

2 years ago

1.2.0

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.5

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.6

3 years ago

0.5.5

3 years ago

0.5.4

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago