Skip to content
t edited this page Sep 13, 2010 · 70 revisions

gas README

gas is a tool that implements graph algorithms and graph store engine.

Requirements

Installation

./configure make make install

Usage

DB Commands

DB Commands modify/select data in graph store.

Initialize DB

gas db init —db=/var/sampledb

Remove Temporary Files

gas db tmp_clear —db=/var/sampledb

or

gas any command —tmp_clear —db=/var/sampledb

Insert edges

gas edge insert —db=/var/sampledb < sample

Select edges

gas edge select 1 —db=/var/sampledb

Select all edges

gas edge all —db=/var/sampledb

PageRank Commands

Compute PageRank and Select all results

gas pagerank —db=/var/sampledb

Flags
* —alpha (Default: 0.15)
* —eps (Default: 1.0e-8)
* —max_iteration (Default: 100)

Compute PageRank and Select a result

gas pagerank select 1 —db=/var/sampledb

HITS Commands

Compute HITS and Select all results

gas hits —db=/var/sampledb

Compute HITS and Select a result

gas hits select 1 —db=/var/sampledb

Modularity-Q Commands

Clustrering using Modularity-Q

gas modularityq —db=/var/sampledb

Other Command Flags

google-glog Flags

gas uses google-glog. You can use glog flags.
For example, —stderrthreshold=0 outputs verbose log messages.
More information, See glog document

Clone this wiki locally